diff options
author | Laurențiu Nicola <[email protected]> | 2021-04-05 15:37:24 +0100 |
---|---|---|
committer | Laurențiu Nicola <[email protected]> | 2021-04-05 15:37:24 +0100 |
commit | aefcbf275804f558ab18e83bfc8869187713b4ad (patch) | |
tree | acce29c3d04b16434a3d031c8b0d698c7707dc97 /crates/hir_ty/src/display.rs | |
parent | fab1c066464022613729a6d714dc83b7d698ece5 (diff) |
Pass interner to ProjectionTy::self_type_parameter
Diffstat (limited to 'crates/hir_ty/src/display.rs')
-rw-r--r-- | crates/hir_ty/src/display.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 { | |||
251 | } | 251 | } |
252 | 252 | ||
253 | let trait_ = f.db.trait_data(self.trait_(f.db)); | 253 | let trait_ = f.db.trait_data(self.trait_(f.db)); |
254 | let first_parameter = self.self_type_parameter().into_displayable( | 254 | let first_parameter = self.self_type_parameter(&Interner).into_displayable( |
255 | f.db, | 255 | f.db, |
256 | f.max_size, | 256 | f.max_size, |
257 | f.omit_verbose_types, | 257 | f.omit_verbose_types, |
@@ -602,7 +602,7 @@ impl HirDisplay for Ty { | |||
602 | WhereClause::AliasEq(AliasEq { | 602 | WhereClause::AliasEq(AliasEq { |
603 | alias: AliasTy::Projection(proj), | 603 | alias: AliasTy::Projection(proj), |
604 | ty: _, | 604 | ty: _, |
605 | }) => proj.self_type_parameter() == self, | 605 | }) => proj.self_type_parameter(&Interner) == self, |
606 | _ => false, | 606 | _ => false, |
607 | }) | 607 | }) |
608 | .collect::<Vec<_>>(); | 608 | .collect::<Vec<_>>(); |