From a1abbbbea730eb7ff51e1f51c228db298ff8a6fb Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Wed, 23 Oct 2019 20:33:50 +0200 Subject: [PATCH] Fixed mem::uninitialized warnings --- macros/src/codegen.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macros/src/codegen.rs b/macros/src/codegen.rs index 4468216f53..9bd8836033 100644 --- a/macros/src/codegen.rs +++ b/macros/src/codegen.rs @@ -1949,13 +1949,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::uninitialized());)) + exprs.push(quote!(#inputs.write(core::mem::MaybeUninit::uninit());)) } #[cfg(feature = "timer-queue")] for task in ctxt.tasks.values() { let scheduleds = &task.scheduleds; - exprs.push(quote!(#scheduleds.write(core::mem::uninitialized());)) + exprs.push(quote!(#scheduleds.write(core::mem::MaybeUninit::uninit());)) } // these are `MaybeUninit` `ReadyQueue`s