@@ -1253,14 +1253,6 @@ impl<'tcx> ToPredicate<'tcx, Clause<'tcx>> for TraitRef<'tcx> {
12531253 }
12541254}
12551255
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-
12641256impl < ' tcx > ToPredicate < ' tcx > for Binder < ' tcx , TraitRef < ' tcx > > {
12651257 #[ inline( always) ]
12661258 fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
@@ -1287,18 +1279,6 @@ impl<'tcx> ToPredicate<'tcx, PolyTraitPredicate<'tcx>> for Binder<'tcx, TraitRef
12871279 }
12881280}
12891281
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-
13021282impl < ' tcx > ToPredicate < ' tcx > for PolyTraitPredicate < ' tcx > {
13031283 fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
13041284 self . map_bound ( |p| PredicateKind :: Clause ( ClauseKind :: Trait ( p) ) ) . to_predicate ( tcx)
@@ -1312,12 +1292,6 @@ impl<'tcx> ToPredicate<'tcx, Clause<'tcx>> for PolyTraitPredicate<'tcx> {
13121292 }
13131293}
13141294
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-
13211295impl < ' tcx > ToPredicate < ' tcx > for PolyRegionOutlivesPredicate < ' tcx > {
13221296 fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
13231297 self . map_bound ( |p| PredicateKind :: Clause ( ClauseKind :: RegionOutlives ( p) ) ) . to_predicate ( tcx)
@@ -1330,12 +1304,6 @@ impl<'tcx> ToPredicate<'tcx> for OutlivesPredicate<Ty<'tcx>, ty::Region<'tcx>> {
13301304 }
13311305}
13321306
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-
13391307impl < ' tcx > ToPredicate < ' tcx > for ProjectionPredicate < ' tcx > {
13401308 fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
13411309 ty:: Binder :: dummy ( PredicateKind :: Clause ( ClauseKind :: Projection ( self ) ) ) . to_predicate ( tcx)
0 commit comments