File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 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>(
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 ( ) {
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments