mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Pass interner to ProjectionTy::self_type_parameter
This commit is contained in:
parent
fab1c06646
commit
aefcbf2758
4 changed files with 7 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue