@@ -950,24 +950,26 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
950
950
let bound_pred = pred. kind ( ) ;
951
951
match bound_pred. skip_binder ( ) {
952
952
ty:: PredicateKind :: Clause ( clause) => match clause {
953
- ty:: Clause :: Trait ( trait_pred) => {
953
+ ty:: ClauseKind :: Trait ( trait_pred) => {
954
954
assert_eq ! ( trait_pred. polarity, ty:: ImplPolarity :: Positive ) ;
955
955
trait_bounds. push ( (
956
956
bound_pred. rebind ( trait_pred. trait_ref ) ,
957
957
span,
958
958
trait_pred. constness ,
959
959
) ) ;
960
960
}
961
- ty:: Clause :: Projection ( proj) => {
961
+ ty:: ClauseKind :: Projection ( proj) => {
962
962
projection_bounds. push ( ( bound_pred. rebind ( proj) , span) ) ;
963
963
}
964
- ty:: Clause :: TypeOutlives ( _) => {
964
+ ty:: ClauseKind :: TypeOutlives ( _) => {
965
965
// Do nothing, we deal with regions separately
966
966
}
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
+ }
971
973
} ,
972
974
ty:: PredicateKind :: AliasRelate ( ..)
973
975
| ty:: PredicateKind :: ObjectSafe ( _)
@@ -1064,7 +1066,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
1064
1066
1065
1067
let bound_predicate = pred. kind ( ) ;
1066
1068
match bound_predicate. skip_binder ( ) {
1067
- ty:: PredicateKind :: Clause ( ty:: Clause :: Trait ( pred) ) => {
1069
+ ty:: PredicateKind :: Clause ( ty:: ClauseKind :: Trait ( pred) ) => {
1068
1070
let pred = bound_predicate. rebind ( pred) ;
1069
1071
associated_types. entry ( span) . or_default ( ) . extend (
1070
1072
tcx. associated_items ( pred. def_id ( ) )
@@ -1074,7 +1076,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
1074
1076
. map ( |item| item. def_id ) ,
1075
1077
) ;
1076
1078
}
1077
- ty:: PredicateKind :: Clause ( ty:: Clause :: Projection ( pred) ) => {
1079
+ ty:: PredicateKind :: Clause ( ty:: ClauseKind :: Projection ( pred) ) => {
1078
1080
let pred = bound_predicate. rebind ( pred) ;
1079
1081
// A `Self` within the original bound will be substituted with a
1080
1082
// `trait_object_dummy_self`, so check for that.
0 commit comments