Move LifetimeCollectVisitor to rustc_ast_lowering

This commit is contained in:
Santiago Pastorino
2022-07-29 22:38:07 -03:00
parent 9f77688d17
commit 4f334f2b97
3 changed files with 67 additions and 61 deletions

View File

@@ -77,6 +77,7 @@ mod block;
mod expr;
mod index;
mod item;
mod lifetime_collector;
mod pat;
mod path;
@@ -1352,7 +1353,8 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
}),
);
let (lifetimes_in_bounds, binders_to_ignore) = ast::lifetimes_in_bounds(bounds);
let (lifetimes_in_bounds, binders_to_ignore) =
lifetime_collector::lifetimes_in_bounds(bounds);
debug!(?lifetimes_in_bounds);
debug!(?binders_to_ignore);
@@ -1756,7 +1758,8 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
}),
);
let (lifetimes_in_bounds, binders_to_ignore) = ast::lifetimes_in_ret_ty(output);
let (lifetimes_in_bounds, binders_to_ignore) =
lifetime_collector::lifetimes_in_ret_ty(output);
debug!(?lifetimes_in_bounds);
debug!(?binders_to_ignore);