mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-10 14:02:57 +00:00
Always use Static lifetimes in chalk mapping
This commit is contained in:
parent
9da191c7e0
commit
b98c681cb7
@ -193,10 +193,11 @@ impl ToChalk for Ty {
|
||||
fn ref_to_chalk(
|
||||
db: &dyn HirDatabase,
|
||||
mutability: chalk_ir::Mutability,
|
||||
lifetime: Lifetime,
|
||||
_lifetime: Lifetime,
|
||||
ty: Ty,
|
||||
) -> chalk_ir::Ty<Interner> {
|
||||
let arg = ty.to_chalk(db);
|
||||
let lifetime = LifetimeData::Static.intern(&Interner);
|
||||
chalk_ir::TyKind::Ref(mutability, lifetime, arg).intern(&Interner)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user