Skip to content

Commit 391de1c

Browse files
committed
Remove a stray new operator in rust_task.h
1 parent 05f9586 commit 391de1c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/rt/rust_task.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -396,12 +396,6 @@ rust_task : public kernel_owned<rust_task>
396396
void allow_yield();
397397
};
398398

399-
// FIXME (#2697): It would be really nice to be able to get rid of this.
400-
inline void *operator new[](size_t size, rust_task *task, const char *tag) {
401-
return task->malloc(size, tag);
402-
}
403-
404-
405399
template <typename T> struct task_owned {
406400
inline void *operator new(size_t size, rust_task *task,
407401
const char *tag) {

0 commit comments

Comments
 (0)