1
Fork 0

Introduce LifetimeCtxt.

This commit is contained in:
Camille GILLOT 2022-05-10 19:56:46 +02:00
parent 52cc779524
commit 5953c57f27
6 changed files with 23 additions and 11 deletions

View file

@ -318,7 +318,7 @@ impl<'v> ast_visit::Visitor<'v> for StatCollector<'v> {
ast_visit::walk_variant(self, v)
}
fn visit_lifetime(&mut self, lifetime: &'v ast::Lifetime) {
fn visit_lifetime(&mut self, lifetime: &'v ast::Lifetime, _: ast_visit::LifetimeCtxt) {
self.record("Lifetime", Id::None, lifetime);
ast_visit::walk_lifetime(self, lifetime)
}