Skip to content

Propagate #[allow(dead_code)] on adts to their inherent impls#157885

Draft
mu001999 wants to merge 1 commit into
rust-lang:mainfrom
mu001999-contrib:dead-code/improve
Draft

Propagate #[allow(dead_code)] on adts to their inherent impls#157885
mu001999 wants to merge 1 commit into
rust-lang:mainfrom
mu001999-contrib:dead-code/improve

Conversation

@mu001999

Copy link
Copy Markdown
Member

This PR does:

  1. propagate #[allow(dead_code)] on adts to their inherent impls and impl items
  2. refactor the previous implementation in Impls and impl items inherit dead_code lint level of the corresponding traits and trait items #144113

Fixes #149142

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jun 14, 2026
Comment thread compiler/rustc_passes/src/dead.rs Outdated
Comment thread compiler/rustc_passes/src/dead.rs Outdated
@mu001999 mu001999 force-pushed the dead-code/improve branch from 0ff50d6 to 93cdd71 Compare June 14, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suppress warnings on dead inherent methods when allowing dead types

3 participants