Skip to content

Commit fd09255

Browse files
committed
Adapt to latest master changes by using PredicateKind
1 parent 7b69987 commit fd09255

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/rustc_infer/src/traits/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ pub fn transitive_bounds_that_define_assoc_type<'tcx>(
301301
let super_predicates =
302302
tcx.super_predicates_that_define_assoc_type((trait_ref.def_id(), Some(assoc_name)));
303303
for (super_predicate, _) in super_predicates.predicates {
304-
let bound_predicate = super_predicate.bound_atom();
304+
let bound_predicate = super_predicate.kind();
305305
let subst_predicate = super_predicate
306306
.subst_supertrait(tcx, &bound_predicate.rebind(trait_ref.skip_binder()));
307307
if let Some(binder) = subst_predicate.to_opt_poly_trait_ref() {

compiler/rustc_middle/src/ty/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2078,7 +2078,7 @@ impl<'tcx> TyCtxt<'tcx> {
20782078
let generic_predicates = self.super_predicates_of(trait_did);
20792079

20802080
for (predicate, _) in generic_predicates.predicates {
2081-
if let ty::PredicateAtom::Trait(data, _) = predicate.skip_binders() {
2081+
if let ty::PredicateKind::Trait(data, _) = predicate.kind().skip_binder() {
20822082
if set.insert(data.def_id()) {
20832083
stack.push(data.def_id());
20842084
}

compiler/rustc_typeck/src/collect.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ fn type_param_predicates(
578578
)
579579
.into_iter()
580580
.filter(|(predicate, _)| match predicate.kind().skip_binder() {
581-
ty::PredicateAtom::Trait(data, _) => data.self_ty().is_param(index),
581+
ty::PredicateKind::Trait(data, _) => data.self_ty().is_param(index),
582582
_ => false,
583583
}),
584584
);

0 commit comments

Comments
 (0)