Use dedicated PreciseCapturingArg for representing what goes in use<>
This commit is contained in:
parent
647b672f16
commit
fc9e344874
6 changed files with 146 additions and 56 deletions
|
@ -1047,10 +1047,20 @@ impl<'a: 'ast, 'ast, 'tcx> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast,
|
|||
});
|
||||
self.diag_metadata.current_function = previous_value;
|
||||
}
|
||||
|
||||
fn visit_lifetime(&mut self, lifetime: &'ast Lifetime, use_ctxt: visit::LifetimeCtxt) {
|
||||
self.resolve_lifetime(lifetime, use_ctxt)
|
||||
}
|
||||
|
||||
fn visit_precise_capturing_arg(&mut self, arg: &'ast PreciseCapturingArg) {
|
||||
match arg {
|
||||
PreciseCapturingArg::Lifetime(_) => visit::walk_precise_capturing_arg(self, arg),
|
||||
PreciseCapturingArg::Arg(ident, _) => {
|
||||
todo!("cannot resolve args yet: {ident}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn visit_generics(&mut self, generics: &'ast Generics) {
|
||||
self.visit_generic_params(&generics.params, self.diag_metadata.current_self_item.is_some());
|
||||
for p in &generics.where_clause.predicates {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue