Don't visit the impl Trait item twice
This commit is contained in:
parent
37cc714aa7
commit
0e775a3b86
1 changed files with 1 additions and 2 deletions
|
|
@ -607,9 +607,8 @@ pub fn walk_ty<'v, V: Visitor<'v>>(visitor: &mut V, typ: &'v Ty) {
|
|||
}
|
||||
visitor.visit_lifetime(lifetime);
|
||||
}
|
||||
TyImplTraitExistential(item_id, def_id, ref lifetimes) => {
|
||||
TyImplTraitExistential(_, def_id, ref lifetimes) => {
|
||||
visitor.visit_def_mention(Def::Existential(def_id));
|
||||
visitor.visit_nested_item(item_id);
|
||||
walk_list!(visitor, visit_lifetime, lifetimes);
|
||||
}
|
||||
TyTypeof(ref expression) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue