Coming from #74200.
I used #![deny(unsafe_op_in_unsafe_fn)] in std/panicking.rs. This raised an error about a missing unsafe {} block in std/thread/local.rs. Adding it raised a warning about extraneous unsafe {} in other parts of the code. This forced me to use #[allow(unused_unsafe)].
It was noted that lints like those (whatever those is) should maybe not propagate inside macros.
cc @Mark-Simulacrum who raised the point in the first place
Coming from #74200.
I used
#![deny(unsafe_op_in_unsafe_fn)]instd/panicking.rs. This raised an error about a missingunsafe {}block instd/thread/local.rs. Adding it raised a warning about extraneousunsafe {}in other parts of the code. This forced me to use#[allow(unused_unsafe)].It was noted that lints like those (whatever those is) should maybe not propagate inside macros.
cc @Mark-Simulacrum who raised the point in the first place