Nested `#[expect(unsafe_code)]` à la `#[expect(dead_code)]`
Rust Internals
Nested `#[expect(unsafe_code)]` à la `#[expect(dead_code)]`
Seeing the update to how nested cases of #[expect(dead_code)] are handled in 1.100.0 (Release Notes) triggered a thought about an ongoing concern I have with the unsafe_code lint. For me this lint fulfils 2 purposes, and I can only ever apply it in one (either work OK, but never both): for ease of auditing flagging "this is where you will find unsafe, nowhere else" (+ ensuring good ringfencing) for ensuring every unsafe is truly justified If I want to make it clear in a large crate where aud...
0 comments
No comments yet.