From cbde2c7ef95de5767b830b963dc122a661d65efa Mon Sep 17 00:00:00 2001 From: Per Lindgren Date: Wed, 3 Nov 2021 10:39:11 +0100 Subject: [PATCH] MaybeUninit dance --- macros/src/codegen/shared_resources_struct.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/macros/src/codegen/shared_resources_struct.rs b/macros/src/codegen/shared_resources_struct.rs index d6acce190c..21a1f99161 100644 --- a/macros/src/codegen/shared_resources_struct.rs +++ b/macros/src/codegen/shared_resources_struct.rs @@ -78,8 +78,7 @@ pub fn codegen( values_mut.push(quote!( #(#cfgs)* - #name: &mut *#mangled_name.get_mut_unchecked().as_mut_ptr() - + #name: &mut *(&mut *#mangled_name.get_mut()).as_mut_ptr() )); let ceiling = match analysis.ownerships.get(name) {