diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h index 7aa216042039f..4aa1199cabc3f 100644 --- a/src/rt/rust_task.h +++ b/src/rt/rust_task.h @@ -396,12 +396,6 @@ rust_task : public kernel_owned void allow_yield(); }; -// FIXME (#2697): It would be really nice to be able to get rid of this. -inline void *operator new[](size_t size, rust_task *task, const char *tag) { - return task->malloc(size, tag); -} - - template struct task_owned { inline void *operator new(size_t size, rust_task *task, const char *tag) {