Pre-RFC: Deprecation and separation of the dead_code lint
Rust Internals [Unofficial]
March 1, 2026
Maybe dead_code should become a lint group instead, to make things like #![allow(dead_code)] still work (and not be deprecated) even though there will be more specific lints
Discussion in the ATmosphere