mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
8b1bf8af85
Impls and impl items inherit `dead_code` lint level of the corresponding traits and trait items https://github.com/rust-lang/rust/blob/master/compiler/rustc_passes/src/dead.rs#L360-L361 won't insert assoc items into the live set, so that impl items cannot be marked live. This PR lets impls and impl items can inherit lint levels of the corresponding traits and trait items. Fixes rust-lang/rust#144060 r? ````@petrochenkov````