@@ -950,24 +950,26 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
950950 let bound_pred = pred. kind ( ) ;
951951 match bound_pred. skip_binder ( ) {
952952 ty:: PredicateKind :: Clause ( clause) => match clause {
953- ty:: Clause :: Trait ( trait_pred) => {
953+ ty:: ClauseKind :: Trait ( trait_pred) => {
954954 assert_eq ! ( trait_pred. polarity, ty:: ImplPolarity :: Positive ) ;
955955 trait_bounds. push ( (
956956 bound_pred. rebind ( trait_pred. trait_ref ) ,
957957 span,
958958 trait_pred. constness ,
959959 ) ) ;
960960 }
961- ty:: Clause :: Projection ( proj) => {
961+ ty:: ClauseKind :: Projection ( proj) => {
962962 projection_bounds. push ( ( bound_pred. rebind ( proj) , span) ) ;
963963 }
964- ty:: Clause :: TypeOutlives ( _) => {
964+ ty:: ClauseKind :: TypeOutlives ( _) => {
965965 // Do nothing, we deal with regions separately
966966 }
967- ty:: Clause :: RegionOutlives ( _)
968- | ty:: Clause :: ConstArgHasType ( ..)
969- | ty:: Clause :: WellFormed ( _)
970- | ty:: Clause :: ConstEvaluatable ( _) => bug ! ( ) ,
967+ ty:: ClauseKind :: RegionOutlives ( _)
968+ | ty:: ClauseKind :: ConstArgHasType ( ..)
969+ | ty:: ClauseKind :: WellFormed ( _)
970+ | ty:: ClauseKind :: ConstEvaluatable ( _) => {
971+ bug ! ( )
972+ }
971973 } ,
972974 ty:: PredicateKind :: AliasRelate ( ..)
973975 | ty:: PredicateKind :: ObjectSafe ( _)
@@ -1064,7 +1066,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
10641066
10651067 let bound_predicate = pred. kind ( ) ;
10661068 match bound_predicate. skip_binder ( ) {
1067- ty:: PredicateKind :: Clause ( ty:: Clause :: Trait ( pred) ) => {
1069+ ty:: PredicateKind :: Clause ( ty:: ClauseKind :: Trait ( pred) ) => {
10681070 let pred = bound_predicate. rebind ( pred) ;
10691071 associated_types. entry ( span) . or_default ( ) . extend (
10701072 tcx. associated_items ( pred. def_id ( ) )
@@ -1074,7 +1076,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
10741076 . map ( |item| item. def_id ) ,
10751077 ) ;
10761078 }
1077- ty:: PredicateKind :: Clause ( ty:: Clause :: Projection ( pred) ) => {
1079+ ty:: PredicateKind :: Clause ( ty:: ClauseKind :: Projection ( pred) ) => {
10781080 let pred = bound_predicate. rebind ( pred) ;
10791081 // A `Self` within the original bound will be substituted with a
10801082 // `trait_object_dummy_self`, so check for that.
0 commit comments