Skip to content

Commit b98c681

Browse files
committed
Always use Static lifetimes in chalk mapping
1 parent 9da191c commit b98c681

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/hir_ty/src/traits/chalk/mapping.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,11 @@ impl ToChalk for Ty {
193193
fn ref_to_chalk(
194194
db: &dyn HirDatabase,
195195
mutability: chalk_ir::Mutability,
196-
lifetime: Lifetime,
196+
_lifetime: Lifetime,
197197
ty: Ty,
198198
) -> chalk_ir::Ty<Interner> {
199199
let arg = ty.to_chalk(db);
200+
let lifetime = LifetimeData::Static.intern(&Interner);
200201
chalk_ir::TyKind::Ref(mutability, lifetime, arg).intern(&Interner)
201202
}
202203

0 commit comments

Comments
 (0)