Skip to content

Commit 8e548bf

Browse files
committed
Remove weird slice conversion
1 parent 6f43af2 commit 8e548bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_passes/src/dead.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ impl DeadVisitor<'tcx> {
547547
let def_id = self.tcx.hir().local_def_id(id);
548548
let inherent_impls = self.tcx.inherent_impls(def_id);
549549
for &impl_did in inherent_impls.iter() {
550-
for &item_did in &self.tcx.associated_item_def_ids(impl_did)[..] {
550+
for item_did in self.tcx.associated_item_def_ids(impl_did) {
551551
if let Some(did) = item_did.as_local() {
552552
let item_hir_id = self.tcx.hir().local_def_id_to_hir_id(did);
553553
if self.live_symbols.contains(&item_hir_id) {

0 commit comments

Comments
 (0)