Skip to content

Commit 0e775a3

Browse files
committed
Don't visit the impl Trait item twice
1 parent 37cc714 commit 0e775a3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustc/hir/intravisit.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,9 +607,8 @@ pub fn walk_ty<'v, V: Visitor<'v>>(visitor: &mut V, typ: &'v Ty) {
607607
}
608608
visitor.visit_lifetime(lifetime);
609609
}
610-
TyImplTraitExistential(item_id, def_id, ref lifetimes) => {
610+
TyImplTraitExistential(_, def_id, ref lifetimes) => {
611611
visitor.visit_def_mention(Def::Existential(def_id));
612-
visitor.visit_nested_item(item_id);
613612
walk_list!(visitor, visit_lifetime, lifetimes);
614613
}
615614
TyTypeof(ref expression) => {

0 commit comments

Comments
 (0)