Introduce LifetimeCtxt.
This commit is contained in:
parent
52cc779524
commit
5953c57f27
6 changed files with 23 additions and 11 deletions
|
@ -793,7 +793,7 @@ impl<'a: 'ast, 'ast> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast> {
|
|||
});
|
||||
self.diagnostic_metadata.current_function = previous_value;
|
||||
}
|
||||
fn visit_lifetime(&mut self, lifetime: &'ast Lifetime) {
|
||||
fn visit_lifetime(&mut self, lifetime: &'ast Lifetime, _: visit::LifetimeCtxt) {
|
||||
self.resolve_lifetime(lifetime)
|
||||
}
|
||||
|
||||
|
@ -859,7 +859,7 @@ impl<'a: 'ast, 'ast> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast> {
|
|||
|
||||
self.visit_ty(ty);
|
||||
}
|
||||
GenericArg::Lifetime(lt) => self.visit_lifetime(lt),
|
||||
GenericArg::Lifetime(lt) => self.visit_lifetime(lt, visit::LifetimeCtxt::GenericArg),
|
||||
GenericArg::Const(ct) => self.visit_anon_const(ct),
|
||||
}
|
||||
self.diagnostic_metadata.currently_processing_generics = prev;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue