aboutsummaryrefslogtreecommitdiff
path: root/crates/hir
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir')
-rw-r--r--crates/hir/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs
index 7ac9118fa..0afc06906 100644
--- a/crates/hir/src/lib.rs
+++ b/crates/hir/src/lib.rs
@@ -1791,7 +1791,7 @@ impl Type {
1791 .build(); 1791 .build();
1792 1792
1793 let goal = Canonical { 1793 let goal = Canonical {
1794 value: hir_ty::InEnvironment::new(self.env.env.clone(), trait_ref.cast(&Interner)), 1794 value: hir_ty::InEnvironment::new(&self.env.env, trait_ref.cast(&Interner)),
1795 binders: CanonicalVarKinds::empty(&Interner), 1795 binders: CanonicalVarKinds::empty(&Interner),
1796 }; 1796 };
1797 1797
@@ -1810,7 +1810,7 @@ impl Type {
1810 .build(); 1810 .build();
1811 let goal = hir_ty::make_canonical( 1811 let goal = hir_ty::make_canonical(
1812 InEnvironment::new( 1812 InEnvironment::new(
1813 self.env.env.clone(), 1813 &self.env.env,
1814 AliasEq { 1814 AliasEq {
1815 alias: AliasTy::Projection(projection), 1815 alias: AliasTy::Projection(projection),
1816 ty: TyKind::BoundVar(BoundVar::new(DebruijnIndex::INNERMOST, 0)) 1816 ty: TyKind::BoundVar(BoundVar::new(DebruijnIndex::INNERMOST, 0))