1
Fork 0

Adapt to latest master changes by using PredicateKind

This commit is contained in:
Santiago Pastorino 2021-02-02 13:52:01 -03:00
parent 7b69987985
commit fd092557ce
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
3 changed files with 3 additions and 3 deletions

View file

@ -578,7 +578,7 @@ fn type_param_predicates(
)
.into_iter()
.filter(|(predicate, _)| match predicate.kind().skip_binder() {
ty::PredicateAtom::Trait(data, _) => data.self_ty().is_param(index),
ty::PredicateKind::Trait(data, _) => data.self_ty().is_param(index),
_ => false,
}),
);