@@ -204,7 +204,7 @@ macro_rules! define_dep_nodes {
204204 impl DepNode {
205205 #[ allow( unreachable_code, non_snake_case) ]
206206 #[ inline( always) ]
207- pub fn new<' a, ' gcx, ' tcx>( tcx: TyCtxt <' a , ' gcx, ' tcx>,
207+ pub fn new<' a, ' gcx, ' tcx>( tcx: TyCtxt <' tcx , ' gcx, ' tcx>,
208208 dep: DepConstructor <' gcx>)
209209 -> DepNode
210210 where ' gcx: ' a + ' tcx,
@@ -442,49 +442,49 @@ rustc_dep_node_append!([define_dep_nodes!][ <'tcx>
442442] ) ;
443443
444444pub trait RecoverKey < ' tcx > : Sized {
445- fn recover ( tcx : TyCtxt < ' _ , ' tcx , ' tcx > , dep_node : & DepNode ) -> Option < Self > ;
445+ fn recover ( tcx : TyCtxt < ' tcx , ' tcx , ' tcx > , dep_node : & DepNode ) -> Option < Self > ;
446446}
447447
448448impl RecoverKey < ' tcx > for CrateNum {
449- fn recover ( tcx : TyCtxt < ' _ , ' tcx , ' tcx > , dep_node : & DepNode ) -> Option < Self > {
449+ fn recover ( tcx : TyCtxt < ' tcx , ' tcx , ' tcx > , dep_node : & DepNode ) -> Option < Self > {
450450 dep_node. extract_def_id ( tcx) . map ( |id| id. krate )
451451 }
452452}
453453
454454impl RecoverKey < ' tcx > for DefId {
455- fn recover ( tcx : TyCtxt < ' _ , ' tcx , ' tcx > , dep_node : & DepNode ) -> Option < Self > {
455+ fn recover ( tcx : TyCtxt < ' tcx , ' tcx , ' tcx > , dep_node : & DepNode ) -> Option < Self > {
456456 dep_node. extract_def_id ( tcx)
457457 }
458458}
459459
460460impl RecoverKey < ' tcx > for DefIndex {
461- fn recover ( tcx : TyCtxt < ' _ , ' tcx , ' tcx > , dep_node : & DepNode ) -> Option < Self > {
461+ fn recover ( tcx : TyCtxt < ' tcx , ' tcx , ' tcx > , dep_node : & DepNode ) -> Option < Self > {
462462 dep_node. extract_def_id ( tcx) . map ( |id| id. index )
463463 }
464464}
465465
466- trait DepNodeParams < ' a , ' gcx : ' tcx + ' a , ' tcx : ' a > : fmt:: Debug {
466+ trait DepNodeParams < ' gcx : ' tcx , ' tcx > : fmt:: Debug {
467467 const CAN_RECONSTRUCT_QUERY_KEY : bool ;
468468
469469 /// This method turns the parameters of a DepNodeConstructor into an opaque
470470 /// Fingerprint to be used in DepNode.
471471 /// Not all DepNodeParams support being turned into a Fingerprint (they
472472 /// don't need to if the corresponding DepNode is anonymous).
473- fn to_fingerprint ( & self , _: TyCtxt < ' a , ' gcx , ' tcx > ) -> Fingerprint {
473+ fn to_fingerprint ( & self , _: TyCtxt < ' tcx , ' gcx , ' tcx > ) -> Fingerprint {
474474 panic ! ( "Not implemented. Accidentally called on anonymous node?" )
475475 }
476476
477- fn to_debug_str ( & self , _: TyCtxt < ' a , ' gcx , ' tcx > ) -> String {
477+ fn to_debug_str ( & self , _: TyCtxt < ' tcx , ' gcx , ' tcx > ) -> String {
478478 format ! ( "{:?}" , self )
479479 }
480480}
481481
482- impl < ' a , ' gcx : ' tcx + ' a , ' tcx : ' a , T > DepNodeParams < ' a , ' gcx , ' tcx > for T
483- where T : HashStable < StableHashingContext < ' a > > + fmt:: Debug
482+ impl < ' gcx : ' tcx , ' tcx , T > DepNodeParams < ' gcx , ' tcx > for T
483+ where T : HashStable < StableHashingContext < ' tcx > > + fmt:: Debug
484484{
485485 default const CAN_RECONSTRUCT_QUERY_KEY : bool = false;
486486
487- default fn to_fingerprint ( & self , tcx : TyCtxt < ' a , ' gcx , ' tcx > ) -> Fingerprint {
487+ default fn to_fingerprint ( & self , tcx : TyCtxt < ' tcx , ' gcx , ' tcx > ) -> Fingerprint {
488488 let mut hcx = tcx. create_stable_hashing_context ( ) ;
489489 let mut hasher = StableHasher :: new ( ) ;
490490
@@ -493,36 +493,36 @@ impl<'a, 'gcx: 'tcx + 'a, 'tcx: 'a, T> DepNodeParams<'a, 'gcx, 'tcx> for T
493493 hasher. finish ( )
494494 }
495495
496- default fn to_debug_str ( & self , _: TyCtxt < ' a , ' gcx , ' tcx > ) -> String {
496+ default fn to_debug_str ( & self , _: TyCtxt < ' tcx , ' gcx , ' tcx > ) -> String {
497497 format ! ( "{:?}" , * self )
498498 }
499499}
500500
501- impl < ' a , ' gcx : ' tcx + ' a , ' tcx : ' a > DepNodeParams < ' a , ' gcx , ' tcx > for DefId {
501+ impl < ' gcx : ' tcx , ' tcx > DepNodeParams < ' gcx , ' tcx > for DefId {
502502 const CAN_RECONSTRUCT_QUERY_KEY : bool = true ;
503503
504504 fn to_fingerprint ( & self , tcx : TyCtxt < ' _ , ' _ , ' _ > ) -> Fingerprint {
505505 tcx. def_path_hash ( * self ) . 0
506506 }
507507
508- fn to_debug_str ( & self , tcx : TyCtxt < ' a , ' gcx , ' tcx > ) -> String {
508+ fn to_debug_str ( & self , tcx : TyCtxt < ' tcx , ' gcx , ' tcx > ) -> String {
509509 tcx. def_path_str ( * self )
510510 }
511511}
512512
513- impl < ' a , ' gcx : ' tcx + ' a , ' tcx : ' a > DepNodeParams < ' a , ' gcx , ' tcx > for DefIndex {
513+ impl < ' gcx : ' tcx , ' tcx > DepNodeParams < ' gcx , ' tcx > for DefIndex {
514514 const CAN_RECONSTRUCT_QUERY_KEY : bool = true ;
515515
516516 fn to_fingerprint ( & self , tcx : TyCtxt < ' _ , ' _ , ' _ > ) -> Fingerprint {
517517 tcx. hir ( ) . definitions ( ) . def_path_hash ( * self ) . 0
518518 }
519519
520- fn to_debug_str ( & self , tcx : TyCtxt < ' a , ' gcx , ' tcx > ) -> String {
520+ fn to_debug_str ( & self , tcx : TyCtxt < ' tcx , ' gcx , ' tcx > ) -> String {
521521 tcx. def_path_str ( DefId :: local ( * self ) )
522522 }
523523}
524524
525- impl < ' a , ' gcx : ' tcx + ' a , ' tcx : ' a > DepNodeParams < ' a , ' gcx , ' tcx > for CrateNum {
525+ impl < ' gcx : ' tcx , ' tcx > DepNodeParams < ' gcx , ' tcx > for CrateNum {
526526 const CAN_RECONSTRUCT_QUERY_KEY : bool = true ;
527527
528528 fn to_fingerprint ( & self , tcx : TyCtxt < ' _ , ' _ , ' _ > ) -> Fingerprint {
@@ -533,12 +533,12 @@ impl<'a, 'gcx: 'tcx + 'a, 'tcx: 'a> DepNodeParams<'a, 'gcx, 'tcx> for CrateNum {
533533 tcx. def_path_hash ( def_id) . 0
534534 }
535535
536- fn to_debug_str ( & self , tcx : TyCtxt < ' a , ' gcx , ' tcx > ) -> String {
536+ fn to_debug_str ( & self , tcx : TyCtxt < ' tcx , ' gcx , ' tcx > ) -> String {
537537 tcx. crate_name ( * self ) . as_str ( ) . to_string ( )
538538 }
539539}
540540
541- impl < ' a , ' gcx : ' tcx + ' a , ' tcx : ' a > DepNodeParams < ' a , ' gcx , ' tcx > for ( DefId , DefId ) {
541+ impl < ' gcx : ' tcx , ' tcx > DepNodeParams < ' gcx , ' tcx > for ( DefId , DefId ) {
542542 const CAN_RECONSTRUCT_QUERY_KEY : bool = false ;
543543
544544 // We actually would not need to specialize the implementation of this
@@ -553,7 +553,7 @@ impl<'a, 'gcx: 'tcx + 'a, 'tcx: 'a> DepNodeParams<'a, 'gcx, 'tcx> for (DefId, De
553553 def_path_hash_0. 0 . combine ( def_path_hash_1. 0 )
554554 }
555555
556- fn to_debug_str ( & self , tcx : TyCtxt < ' a , ' gcx , ' tcx > ) -> String {
556+ fn to_debug_str ( & self , tcx : TyCtxt < ' tcx , ' gcx , ' tcx > ) -> String {
557557 let ( def_id_0, def_id_1) = * self ;
558558
559559 format ! ( "({}, {})" ,
@@ -562,7 +562,7 @@ impl<'a, 'gcx: 'tcx + 'a, 'tcx: 'a> DepNodeParams<'a, 'gcx, 'tcx> for (DefId, De
562562 }
563563}
564564
565- impl < ' a , ' gcx : ' tcx + ' a , ' tcx : ' a > DepNodeParams < ' a , ' gcx , ' tcx > for HirId {
565+ impl < ' gcx : ' tcx , ' tcx > DepNodeParams < ' gcx , ' tcx > for HirId {
566566 const CAN_RECONSTRUCT_QUERY_KEY : bool = false ;
567567
568568 // We actually would not need to specialize the implementation of this
0 commit comments