cortex-m
cortex-m copied to clipboard
`static mut` transform produces warning with unsafe-op-in-unsafe-fn
#![warn(unsafe_op_in_unsafe_fn)]
#[entry]
fn main() -> ! {
// The next line generates a warning while it shouldn't.
static mut CLOCKS: MaybeUninit<Clocks> = MaybeUninit::new();
// ...
}
I see in https://github.com/rust-embedded/cortex-m/issues/411#issuecomment-784449125 that maybe this static mut
transform is going to be deprecated. Is that true?