MaybeUninit dance

This commit is contained in:
Per Lindgren 2021-11-03 10:39:11 +01:00
parent de94306128
commit cbde2c7ef9

View file

@ -78,8 +78,7 @@ pub fn codegen(
values_mut.push(quote!( values_mut.push(quote!(
#(#cfgs)* #(#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) { let ceiling = match analysis.ownerships.get(name) {