aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/lower.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_ty/src/lower.rs')
-rw-r--r--crates/hir_ty/src/lower.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/hir_ty/src/lower.rs b/crates/hir_ty/src/lower.rs
index 5a769fa6a..ff795377a 100644
--- a/crates/hir_ty/src/lower.rs
+++ b/crates/hir_ty/src/lower.rs
@@ -200,7 +200,8 @@ impl<'a> TyLoweringContext<'a> {
200 ) 200 )
201 }); 201 });
202 let bounds = crate::make_only_type_binders(1, bounds); 202 let bounds = crate::make_only_type_binders(1, bounds);
203 TyKind::Dyn(DynTy { bounds }).intern(&Interner) 203 TyKind::Dyn(DynTy { bounds, lifetime: LifetimeData::Static.intern(&Interner) })
204 .intern(&Interner)
204 } 205 }
205 TypeRef::ImplTrait(bounds) => { 206 TypeRef::ImplTrait(bounds) => {
206 match self.impl_trait_mode { 207 match self.impl_trait_mode {
@@ -392,6 +393,7 @@ impl<'a> TyLoweringContext<'a> {
392 ))), 393 ))),
393 ), 394 ),
394 ), 395 ),
396 lifetime: LifetimeData::Static.intern(&Interner),
395 }; 397 };
396 TyKind::Dyn(dyn_ty).intern(&Interner) 398 TyKind::Dyn(dyn_ty).intern(&Interner)
397 }; 399 };