Explain the lack of item recursion
This commit is contained in:
parent
98a48fdae6
commit
f21a98d8a9
1 changed files with 3 additions and 0 deletions
|
|
@ -608,6 +608,9 @@ pub fn walk_ty<'v, V: Visitor<'v>>(visitor: &mut V, typ: &'v Ty) {
|
|||
visitor.visit_lifetime(lifetime);
|
||||
}
|
||||
TyImplTraitExistential(_, def_id, ref lifetimes) => {
|
||||
// we are not recursing into the `existential` item, because it is already being visited
|
||||
// as part of the surrounding module. The `NodeId` just exists so we don't have to look
|
||||
// it up everywhere else in the compiler
|
||||
visitor.visit_def_mention(Def::Existential(def_id));
|
||||
walk_list!(visitor, visit_lifetime, lifetimes);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue