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/display.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/hir_ty/src/display.rs') diff --git a/crates/hir_ty/src/display.rs b/crates/hir_ty/src/display.rs index 5ff70c893..965476a05 100644 --- a/crates/hir_ty/src/display.rs +++ b/crates/hir_ty/src/display.rs @@ -251,7 +251,7 @@ impl HirDisplay for ProjectionTy { } let trait_ = f.db.trait_data(self.trait_(f.db)); - let first_parameter = self.self_type_parameter().into_displayable( + let first_parameter = self.self_type_parameter(&Interner).into_displayable( f.db, f.max_size, f.omit_verbose_types, @@ -602,7 +602,7 @@ impl HirDisplay for Ty { WhereClause::AliasEq(AliasEq { alias: AliasTy::Projection(proj), ty: _, - }) => proj.self_type_parameter() == self, + }) => proj.self_type_parameter(&Interner) == self, _ => false, }) .collect::>(); -- cgit v1.2.3