Fix return type of self_type_parameter

This commit is contained in:
Florian Diebold 2021-04-07 20:41:52 +02:00
parent 6777a4975d
commit 9b4ecd3723
4 changed files with 10 additions and 10 deletions

View file

@ -199,12 +199,12 @@ impl TyExt for Ty {
.map(|pred| pred.clone().substitute(&Interner, &substs))
.filter(|wc| match &wc.skip_binders() {
WhereClause::Implemented(tr) => {
tr.self_type_parameter(&Interner) == self
&tr.self_type_parameter(&Interner) == self
}
WhereClause::AliasEq(AliasEq {
alias: AliasTy::Projection(proj),
ty: _,
}) => proj.self_type_parameter(&Interner) == self,
}) => &proj.self_type_parameter(&Interner) == self,
_ => false,
})
.collect::<Vec<_>>();