@@ -1196,13 +1196,6 @@ impl<'tcx> ToPredicate<'tcx> for Binder<'tcx, PredicateKind<'tcx>> {
1196
1196
}
1197
1197
}
1198
1198
1199
- impl < ' tcx > ToPredicate < ' tcx > for ClauseKind < ' tcx > {
1200
- #[ inline( always) ]
1201
- fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1202
- tcx. mk_predicate ( ty:: Binder :: dummy ( ty:: PredicateKind :: Clause ( self ) ) )
1203
- }
1204
- }
1205
-
1206
1199
impl < ' tcx > ToPredicate < ' tcx > for Binder < ' tcx , ClauseKind < ' tcx > > {
1207
1200
#[ inline( always) ]
1208
1201
fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
@@ -1253,14 +1246,6 @@ impl<'tcx> ToPredicate<'tcx, Clause<'tcx>> for TraitRef<'tcx> {
1253
1246
}
1254
1247
}
1255
1248
1256
- impl < ' tcx > ToPredicate < ' tcx , Clause < ' tcx > > for TraitPredicate < ' tcx > {
1257
- #[ inline( always) ]
1258
- fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Clause < ' tcx > {
1259
- let p: Predicate < ' tcx > = self . to_predicate ( tcx) ;
1260
- p. expect_clause ( )
1261
- }
1262
- }
1263
-
1264
1249
impl < ' tcx > ToPredicate < ' tcx > for Binder < ' tcx , TraitRef < ' tcx > > {
1265
1250
#[ inline( always) ]
1266
1251
fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
@@ -1287,18 +1272,6 @@ impl<'tcx> ToPredicate<'tcx, PolyTraitPredicate<'tcx>> for Binder<'tcx, TraitRef
1287
1272
}
1288
1273
}
1289
1274
1290
- impl < ' tcx > ToPredicate < ' tcx , PolyTraitPredicate < ' tcx > > for TraitRef < ' tcx > {
1291
- fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> PolyTraitPredicate < ' tcx > {
1292
- ty:: Binder :: dummy ( self ) . to_predicate ( tcx)
1293
- }
1294
- }
1295
-
1296
- impl < ' tcx > ToPredicate < ' tcx , PolyTraitPredicate < ' tcx > > for TraitPredicate < ' tcx > {
1297
- fn to_predicate ( self , _tcx : TyCtxt < ' tcx > ) -> PolyTraitPredicate < ' tcx > {
1298
- ty:: Binder :: dummy ( self )
1299
- }
1300
- }
1301
-
1302
1275
impl < ' tcx > ToPredicate < ' tcx > for PolyTraitPredicate < ' tcx > {
1303
1276
fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1304
1277
self . map_bound ( |p| PredicateKind :: Clause ( ClauseKind :: Trait ( p) ) ) . to_predicate ( tcx)
@@ -1312,12 +1285,6 @@ impl<'tcx> ToPredicate<'tcx, Clause<'tcx>> for PolyTraitPredicate<'tcx> {
1312
1285
}
1313
1286
}
1314
1287
1315
- impl < ' tcx > ToPredicate < ' tcx > for OutlivesPredicate < ty:: Region < ' tcx > , ty:: Region < ' tcx > > {
1316
- fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1317
- ty:: Binder :: dummy ( PredicateKind :: Clause ( ClauseKind :: RegionOutlives ( self ) ) ) . to_predicate ( tcx)
1318
- }
1319
- }
1320
-
1321
1288
impl < ' tcx > ToPredicate < ' tcx > for PolyRegionOutlivesPredicate < ' tcx > {
1322
1289
fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1323
1290
self . map_bound ( |p| PredicateKind :: Clause ( ClauseKind :: RegionOutlives ( p) ) ) . to_predicate ( tcx)
@@ -1330,12 +1297,6 @@ impl<'tcx> ToPredicate<'tcx> for OutlivesPredicate<Ty<'tcx>, ty::Region<'tcx>> {
1330
1297
}
1331
1298
}
1332
1299
1333
- impl < ' tcx > ToPredicate < ' tcx > for PolyTypeOutlivesPredicate < ' tcx > {
1334
- fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1335
- self . map_bound ( |p| PredicateKind :: Clause ( ClauseKind :: TypeOutlives ( p) ) ) . to_predicate ( tcx)
1336
- }
1337
- }
1338
-
1339
1300
impl < ' tcx > ToPredicate < ' tcx > for ProjectionPredicate < ' tcx > {
1340
1301
fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1341
1302
ty:: Binder :: dummy ( PredicateKind :: Clause ( ClauseKind :: Projection ( self ) ) ) . to_predicate ( tcx)
0 commit comments