Auto merge of #16996 - Veykril:lt-err, r=Veykril

internal: Lower outlive goals, respect them in display impls
This commit is contained in:
bors 2024-04-02 14:13:22 +00:00
commit c3b8c2a254
23 changed files with 303 additions and 122 deletions

View file

@ -3910,7 +3910,7 @@ impl Type {
inner.derived(
TyKind::Ref(
if m.is_mut() { hir_ty::Mutability::Mut } else { hir_ty::Mutability::Not },
hir_ty::static_lifetime(),
hir_ty::error_lifetime(),
inner.ty.clone(),
)
.intern(Interner),