From aefcbf275804f558ab18e83bfc8869187713b4ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Mon, 5 Apr 2021 17:37:24 +0300 Subject: Pass interner to ProjectionTy::self_type_parameter --- crates/hir_ty/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/hir_ty/src/lib.rs') diff --git a/crates/hir_ty/src/lib.rs b/crates/hir_ty/src/lib.rs index d1513df1f..80dd7aaca 100644 --- a/crates/hir_ty/src/lib.rs +++ b/crates/hir_ty/src/lib.rs @@ -78,8 +78,8 @@ impl ProjectionTy { } } - pub fn self_type_parameter(&self) -> &Ty { - &self.substitution.interned()[0].assert_ty_ref(&Interner) + pub fn self_type_parameter(&self, interner: &Interner) -> &Ty { + &self.substitution.interned()[0].assert_ty_ref(interner) } fn trait_(&self, db: &dyn HirDatabase) -> TraitId { @@ -477,7 +477,7 @@ impl Ty { WhereClause::AliasEq(AliasEq { alias: AliasTy::Projection(proj), ty: _, - }) => proj.self_type_parameter() == self, + }) => proj.self_type_parameter(&Interner) == self, _ => false, }) .collect_vec(); -- cgit v1.2.3