Pre-RFC: Deprecation and separation of the dead_code lint
Rust Internals [Unofficial]
March 2, 2026
unused is the general group for unused things, whatever they may be. The specific lints in that group do specific things (albeit maybe not all well named)
dead_code: lints on unused itemsunreachable_codelints on unreachable code paths`unreachable_patternslints on match patterns that can never be reached
etc, etc
Discussion in the ATmosphere