Record RPITs elided lifetimes in path segments

This commit is contained in:
Santiago Pastorino
2022-08-02 11:03:29 -03:00
parent 81c4d2371a
commit 1802d45b12
2 changed files with 35 additions and 18 deletions

View File

@@ -1446,7 +1446,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
hir::OwnerNode::Item(self.arena.alloc(opaque_ty_item))
}
fn create_and_capture_lifetime_defs(&mut self, lifetimes_in_bounds: &[&Lifetime]) {
fn create_and_capture_lifetime_defs(&mut self, lifetimes_in_bounds: &[Lifetime]) {
for lifetime in lifetimes_in_bounds {
let ident = lifetime.ident;
let span = ident.span;