mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Always use Static lifetimes in chalk mapping
This commit is contained in:
parent
9da191c7e0
commit
b98c681cb7
1 changed files with 2 additions and 1 deletions
|
@ -193,10 +193,11 @@ impl ToChalk for Ty {
|
||||||
fn ref_to_chalk(
|
fn ref_to_chalk(
|
||||||
db: &dyn HirDatabase,
|
db: &dyn HirDatabase,
|
||||||
mutability: chalk_ir::Mutability,
|
mutability: chalk_ir::Mutability,
|
||||||
lifetime: Lifetime,
|
_lifetime: Lifetime,
|
||||||
ty: Ty,
|
ty: Ty,
|
||||||
) -> chalk_ir::Ty<Interner> {
|
) -> chalk_ir::Ty<Interner> {
|
||||||
let arg = ty.to_chalk(db);
|
let arg = ty.to_chalk(db);
|
||||||
|
let lifetime = LifetimeData::Static.intern(&Interner);
|
||||||
chalk_ir::TyKind::Ref(mutability, lifetime, arg).intern(&Interner)
|
chalk_ir::TyKind::Ref(mutability, lifetime, arg).intern(&Interner)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue