@@ -1337,18 +1337,18 @@ impl<'tcx> ToPolyTraitRef<'tcx> for PolyTraitPredicate<'tcx> {
1337
1337
}
1338
1338
1339
1339
pub trait ToPredicate < ' tcx > {
1340
- fn to_predicate ( & self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > ;
1340
+ fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > ;
1341
1341
}
1342
1342
1343
1343
impl ToPredicate < ' tcx > for PredicateKind < ' tcx > {
1344
1344
#[ inline( always) ]
1345
- fn to_predicate ( & self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1346
- tcx. mk_predicate ( * self )
1345
+ fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1346
+ tcx. mk_predicate ( self )
1347
1347
}
1348
1348
}
1349
1349
1350
1350
impl < ' tcx > ToPredicate < ' tcx > for ConstnessAnd < TraitRef < ' tcx > > {
1351
- fn to_predicate ( & self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1351
+ fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1352
1352
ty:: PredicateKind :: Trait (
1353
1353
ty:: Binder :: dummy ( ty:: TraitPredicate { trait_ref : self . value } ) ,
1354
1354
self . constness ,
@@ -1358,7 +1358,7 @@ impl<'tcx> ToPredicate<'tcx> for ConstnessAnd<TraitRef<'tcx>> {
1358
1358
}
1359
1359
1360
1360
impl < ' tcx > ToPredicate < ' tcx > for ConstnessAnd < & TraitRef < ' tcx > > {
1361
- fn to_predicate ( & self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1361
+ fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1362
1362
ty:: PredicateKind :: Trait (
1363
1363
ty:: Binder :: dummy ( ty:: TraitPredicate { trait_ref : * self . value } ) ,
1364
1364
self . constness ,
@@ -1368,34 +1368,34 @@ impl<'tcx> ToPredicate<'tcx> for ConstnessAnd<&TraitRef<'tcx>> {
1368
1368
}
1369
1369
1370
1370
impl < ' tcx > ToPredicate < ' tcx > for ConstnessAnd < PolyTraitRef < ' tcx > > {
1371
- fn to_predicate ( & self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1371
+ fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1372
1372
ty:: PredicateKind :: Trait ( self . value . to_poly_trait_predicate ( ) , self . constness )
1373
1373
. to_predicate ( tcx)
1374
1374
}
1375
1375
}
1376
1376
1377
1377
impl < ' tcx > ToPredicate < ' tcx > for ConstnessAnd < & PolyTraitRef < ' tcx > > {
1378
- fn to_predicate ( & self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1378
+ fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1379
1379
ty:: PredicateKind :: Trait ( self . value . to_poly_trait_predicate ( ) , self . constness )
1380
1380
. to_predicate ( tcx)
1381
1381
}
1382
1382
}
1383
1383
1384
1384
impl < ' tcx > ToPredicate < ' tcx > for PolyRegionOutlivesPredicate < ' tcx > {
1385
- fn to_predicate ( & self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1386
- PredicateKind :: RegionOutlives ( * self ) . to_predicate ( tcx)
1385
+ fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1386
+ PredicateKind :: RegionOutlives ( self ) . to_predicate ( tcx)
1387
1387
}
1388
1388
}
1389
1389
1390
1390
impl < ' tcx > ToPredicate < ' tcx > for PolyTypeOutlivesPredicate < ' tcx > {
1391
- fn to_predicate ( & self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1392
- PredicateKind :: TypeOutlives ( * self ) . to_predicate ( tcx)
1391
+ fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1392
+ PredicateKind :: TypeOutlives ( self ) . to_predicate ( tcx)
1393
1393
}
1394
1394
}
1395
1395
1396
1396
impl < ' tcx > ToPredicate < ' tcx > for PolyProjectionPredicate < ' tcx > {
1397
- fn to_predicate ( & self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1398
- PredicateKind :: Projection ( * self ) . to_predicate ( tcx)
1397
+ fn to_predicate ( self , tcx : TyCtxt < ' tcx > ) -> Predicate < ' tcx > {
1398
+ PredicateKind :: Projection ( self ) . to_predicate ( tcx)
1399
1399
}
1400
1400
}
1401
1401
0 commit comments