We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f43af2 commit 8e548bfCopy full SHA for 8e548bf
compiler/rustc_passes/src/dead.rs
@@ -547,7 +547,7 @@ impl DeadVisitor<'tcx> {
547
let def_id = self.tcx.hir().local_def_id(id);
548
let inherent_impls = self.tcx.inherent_impls(def_id);
549
for &impl_did in inherent_impls.iter() {
550
- for &item_did in &self.tcx.associated_item_def_ids(impl_did)[..] {
+ for item_did in self.tcx.associated_item_def_ids(impl_did) {
551
if let Some(did) = item_did.as_local() {
552
let item_hir_id = self.tcx.hir().local_def_id_to_hir_id(did);
553
if self.live_symbols.contains(&item_hir_id) {
0 commit comments