Rollup merge of #110982 - cjgillot:elided-self-const, r=petrochenkov
Do not recurse into const generic args when resolving self lifetime elision. Fixes https://github.com/rust-lang/rust/issues/110899 r? `@petrochenkov`
This commit is contained in:
commit
8d66f01ab5
3 changed files with 55 additions and 0 deletions
|
@ -2070,6 +2070,10 @@ impl<'a: 'ast, 'b, 'ast, 'tcx> LateResolutionVisitor<'a, 'b, 'ast, 'tcx> {
|
|||
}
|
||||
visit::walk_ty(self, ty)
|
||||
}
|
||||
|
||||
// A type may have an expression as a const generic argument.
|
||||
// We do not want to recurse into those.
|
||||
fn visit_expr(&mut self, _: &'a Expr) {}
|
||||
}
|
||||
|
||||
let impl_self = self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue