]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_ast_lowering/src/item.rs
Separate lifetime ident from resolution in HIR.
[rust.git] / compiler / rustc_ast_lowering / src / item.rs
index a1941b5d8d3700f19736161eaf010cd4f43d9d11..8a7c3d357a0c2aacc8318db0bb5e1ac3eee5abf4 100644 (file)
@@ -1479,10 +1479,9 @@ pub(super) fn lower_generic_bound_predicate(
                 }))
             }
             GenericParamKind::Lifetime => {
-                let ident_span = self.lower_span(ident.span);
                 let ident = self.lower_ident(ident);
                 let lt_id = self.next_node_id();
-                let lifetime = self.new_named_lifetime(id, lt_id, ident_span, ident);
+                let lifetime = self.new_named_lifetime(id, lt_id, ident);
                 Some(hir::WherePredicate::RegionPredicate(hir::WhereRegionPredicate {
                     lifetime,
                     span,