@@ -376,7 +376,7 @@ pub struct GenericPredicates<'tcx> {
376
376
377
377
impl < ' tcx > GenericPredicates < ' tcx > {
378
378
pub fn instantiate (
379
- & self ,
379
+ self ,
380
380
tcx : TyCtxt < ' tcx > ,
381
381
args : GenericArgsRef < ' tcx > ,
382
382
) -> InstantiatedPredicates < ' tcx > {
@@ -386,20 +386,20 @@ impl<'tcx> GenericPredicates<'tcx> {
386
386
}
387
387
388
388
pub fn instantiate_own (
389
- & self ,
389
+ self ,
390
390
tcx : TyCtxt < ' tcx > ,
391
391
args : GenericArgsRef < ' tcx > ,
392
392
) -> impl Iterator < Item = ( Clause < ' tcx > , Span ) > + DoubleEndedIterator + ExactSizeIterator {
393
393
EarlyBinder :: bind ( self . predicates ) . iter_instantiated_copied ( tcx, args)
394
394
}
395
395
396
- pub fn instantiate_own_identity ( & self ) -> impl Iterator < Item = ( Clause < ' tcx > , Span ) > {
396
+ pub fn instantiate_own_identity ( self ) -> impl Iterator < Item = ( Clause < ' tcx > , Span ) > {
397
397
EarlyBinder :: bind ( self . predicates ) . iter_identity_copied ( )
398
398
}
399
399
400
400
#[ instrument( level = "debug" , skip( self , tcx) ) ]
401
401
fn instantiate_into (
402
- & self ,
402
+ self ,
403
403
tcx : TyCtxt < ' tcx > ,
404
404
instantiated : & mut InstantiatedPredicates < ' tcx > ,
405
405
args : GenericArgsRef < ' tcx > ,
@@ -413,14 +413,14 @@ impl<'tcx> GenericPredicates<'tcx> {
413
413
instantiated. spans . extend ( self . predicates . iter ( ) . map ( |( _, sp) | * sp) ) ;
414
414
}
415
415
416
- pub fn instantiate_identity ( & self , tcx : TyCtxt < ' tcx > ) -> InstantiatedPredicates < ' tcx > {
416
+ pub fn instantiate_identity ( self , tcx : TyCtxt < ' tcx > ) -> InstantiatedPredicates < ' tcx > {
417
417
let mut instantiated = InstantiatedPredicates :: empty ( ) ;
418
418
self . instantiate_identity_into ( tcx, & mut instantiated) ;
419
419
instantiated
420
420
}
421
421
422
422
fn instantiate_identity_into (
423
- & self ,
423
+ self ,
424
424
tcx : TyCtxt < ' tcx > ,
425
425
instantiated : & mut InstantiatedPredicates < ' tcx > ,
426
426
) {
0 commit comments