diff --git a/macros/src/codegen.rs b/macros/src/codegen.rs index 7e502b4d49..94e8cd8ca5 100644 --- a/macros/src/codegen.rs +++ b/macros/src/codegen.rs @@ -1945,13 +1945,13 @@ fn pre_init(ctxt: &Context, app: &App, analysis: &Analysis) -> proc_macro2::Toke // these are `MaybeUninit` arrays for task in ctxt.tasks.values() { let inputs = &task.inputs; - exprs.push(quote!(#inputs.write(core::mem::uninit());)) + exprs.push(quote!(#inputs.write(core::mem::uninitialized());)) } #[cfg(feature = "timer-queue")] for task in ctxt.tasks.values() { let scheduleds = &task.scheduleds; - exprs.push(quote!(#scheduleds.write(core::mem::uninit());)) + exprs.push(quote!(#scheduleds.write(core::mem::uninitialized());)) } // these are `MaybeUninit` `ReadyQueue`s