Fixed aliasing in lock impl

This commit is contained in:
Emil Fresk 2021-11-03 08:27:05 +01:00
parent d3d66c97ae
commit 50017b96f0

View file

@ -69,7 +69,7 @@ pub fn codegen(
let ptr = quote!(
#(#cfgs)*
(&mut *#mangled_name.get_mut()).as_mut_ptr()
#mangled_name.get_mut() as *mut _
);
let ceiling = match analysis.ownerships.get(name) {