@@ -1125,42 +1125,42 @@ impl<'tcx> ToPolyTraitRef<'tcx> for PolyTraitPredicate<'tcx> {
1125
1125
}
1126
1126
}
1127
1127
1128
- pub trait ToPredicate < ' tcx > {
1129
- fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > ;
1128
+ pub trait ToPredicate < ' tcx , Predicate > {
1129
+ fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate ;
1130
1130
}
1131
1131
1132
- impl < ' tcx > ToPredicate < ' tcx > for Predicate < ' tcx > {
1132
+ impl < ' tcx > ToPredicate < ' tcx , Predicate < ' tcx > > for Predicate < ' tcx > {
1133
1133
fn to_predicate ( self , _tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1134
1134
self
1135
1135
}
1136
1136
}
1137
1137
1138
- impl < ' tcx > ToPredicate < ' tcx > for Binder < ' tcx , PredicateKind < ' tcx > > {
1138
+ impl < ' tcx > ToPredicate < ' tcx , Predicate < ' tcx > > for Binder < ' tcx , PredicateKind < ' tcx > > {
1139
1139
#[ inline( always) ]
1140
1140
fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1141
1141
tcx. mk_predicate ( self )
1142
1142
}
1143
1143
}
1144
1144
1145
- impl < ' tcx > ToPredicate < ' tcx > for PolyTraitPredicate < ' tcx > {
1145
+ impl < ' tcx > ToPredicate < ' tcx , Predicate < ' tcx > > for PolyTraitPredicate < ' tcx > {
1146
1146
fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1147
1147
self . map_bound ( PredicateKind :: Trait ) . to_predicate ( tcx)
1148
1148
}
1149
1149
}
1150
1150
1151
- impl < ' tcx > ToPredicate < ' tcx > for PolyRegionOutlivesPredicate < ' tcx > {
1151
+ impl < ' tcx > ToPredicate < ' tcx , Predicate < ' tcx > > for PolyRegionOutlivesPredicate < ' tcx > {
1152
1152
fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1153
1153
self . map_bound ( PredicateKind :: RegionOutlives ) . to_predicate ( tcx)
1154
1154
}
1155
1155
}
1156
1156
1157
- impl < ' tcx > ToPredicate < ' tcx > for PolyTypeOutlivesPredicate < ' tcx > {
1157
+ impl < ' tcx > ToPredicate < ' tcx , Predicate < ' tcx > > for PolyTypeOutlivesPredicate < ' tcx > {
1158
1158
fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1159
1159
self . map_bound ( PredicateKind :: TypeOutlives ) . to_predicate ( tcx)
1160
1160
}
1161
1161
}
1162
1162
1163
- impl < ' tcx > ToPredicate < ' tcx > for PolyProjectionPredicate < ' tcx > {
1163
+ impl < ' tcx > ToPredicate < ' tcx , Predicate < ' tcx > > for PolyProjectionPredicate < ' tcx > {
1164
1164
fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1165
1165
self . map_bound ( PredicateKind :: Projection ) . to_predicate ( tcx)
1166
1166
}
0 commit comments