File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ pub fn transitive_bounds_that_define_assoc_type<'tcx>(
301
301
let super_predicates =
302
302
tcx. super_predicates_that_define_assoc_type ( ( trait_ref. def_id ( ) , Some ( assoc_name) ) ) ;
303
303
for ( super_predicate, _) in super_predicates. predicates {
304
- let bound_predicate = super_predicate. bound_atom ( ) ;
304
+ let bound_predicate = super_predicate. kind ( ) ;
305
305
let subst_predicate = super_predicate
306
306
. subst_supertrait ( tcx, & bound_predicate. rebind ( trait_ref. skip_binder ( ) ) ) ;
307
307
if let Some ( binder) = subst_predicate. to_opt_poly_trait_ref ( ) {
Original file line number Diff line number Diff line change @@ -2078,7 +2078,7 @@ impl<'tcx> TyCtxt<'tcx> {
2078
2078
let generic_predicates = self . super_predicates_of ( trait_did) ;
2079
2079
2080
2080
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 ( ) {
2082
2082
if set. insert ( data. def_id ( ) ) {
2083
2083
stack. push ( data. def_id ( ) ) ;
2084
2084
}
Original file line number Diff line number Diff line change @@ -578,7 +578,7 @@ fn type_param_predicates(
578
578
)
579
579
. into_iter ( )
580
580
. 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) ,
582
582
_ => false ,
583
583
} ) ,
584
584
) ;
You can’t perform that action at this time.
0 commit comments