@@ -331,7 +331,7 @@ macro_rules! define_dep_nodes {
331
331
/// refers to something from the previous compilation session that
332
332
/// has been removed.
333
333
#[ inline]
334
- pub fn extract_def_id( & self , tcx: TyCtxt ) -> Option <DefId > {
334
+ pub fn extract_def_id( & self , tcx: TyCtxt < ' _ , ' _ , ' _> ) -> Option <DefId > {
335
335
if self . kind. can_reconstruct_query_key( ) {
336
336
let def_path_hash = DefPathHash ( self . hash) ;
337
337
tcx. def_path_hash_to_def_id. as_ref( ) ?
@@ -386,7 +386,7 @@ macro_rules! define_dep_nodes {
386
386
}
387
387
388
388
impl fmt:: Debug for DepNode {
389
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
389
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
390
390
write ! ( f, "{:?}" , self . kind) ?;
391
391
392
392
if !self . kind . has_params ( ) && !self . kind . is_anon ( ) {
@@ -424,7 +424,7 @@ impl DefPathHash {
424
424
425
425
impl DefId {
426
426
#[ inline]
427
- pub fn to_dep_node ( self , tcx : TyCtxt , kind : DepKind ) -> DepNode {
427
+ pub fn to_dep_node ( self , tcx : TyCtxt < ' _ , ' _ , ' _ > , kind : DepKind ) -> DepNode {
428
428
DepNode :: from_def_path_hash ( kind, tcx. def_path_hash ( self ) )
429
429
}
430
430
}
@@ -714,7 +714,7 @@ impl<'a, 'gcx: 'tcx + 'a, 'tcx: 'a, T> DepNodeParams<'a, 'gcx, 'tcx> for T
714
714
impl < ' a , ' gcx : ' tcx + ' a , ' tcx : ' a > DepNodeParams < ' a , ' gcx , ' tcx > for DefId {
715
715
const CAN_RECONSTRUCT_QUERY_KEY : bool = true ;
716
716
717
- fn to_fingerprint ( & self , tcx : TyCtxt ) -> Fingerprint {
717
+ fn to_fingerprint ( & self , tcx : TyCtxt < ' _ , ' _ , ' _ > ) -> Fingerprint {
718
718
tcx. def_path_hash ( * self ) . 0
719
719
}
720
720
@@ -726,7 +726,7 @@ impl<'a, 'gcx: 'tcx + 'a, 'tcx: 'a> DepNodeParams<'a, 'gcx, 'tcx> for DefId {
726
726
impl < ' a , ' gcx : ' tcx + ' a , ' tcx : ' a > DepNodeParams < ' a , ' gcx , ' tcx > for DefIndex {
727
727
const CAN_RECONSTRUCT_QUERY_KEY : bool = true ;
728
728
729
- fn to_fingerprint ( & self , tcx : TyCtxt ) -> Fingerprint {
729
+ fn to_fingerprint ( & self , tcx : TyCtxt < ' _ , ' _ , ' _ > ) -> Fingerprint {
730
730
tcx. hir . definitions ( ) . def_path_hash ( * self ) . 0
731
731
}
732
732
@@ -738,7 +738,7 @@ impl<'a, 'gcx: 'tcx + 'a, 'tcx: 'a> DepNodeParams<'a, 'gcx, 'tcx> for DefIndex {
738
738
impl < ' a , ' gcx : ' tcx + ' a , ' tcx : ' a > DepNodeParams < ' a , ' gcx , ' tcx > for CrateNum {
739
739
const CAN_RECONSTRUCT_QUERY_KEY : bool = true ;
740
740
741
- fn to_fingerprint ( & self , tcx : TyCtxt ) -> Fingerprint {
741
+ fn to_fingerprint ( & self , tcx : TyCtxt < ' _ , ' _ , ' _ > ) -> Fingerprint {
742
742
let def_id = DefId {
743
743
krate : * self ,
744
744
index : CRATE_DEF_INDEX ,
@@ -757,7 +757,7 @@ impl<'a, 'gcx: 'tcx + 'a, 'tcx: 'a> DepNodeParams<'a, 'gcx, 'tcx> for (DefId, De
757
757
// We actually would not need to specialize the implementation of this
758
758
// method but it's faster to combine the hashes than to instantiate a full
759
759
// hashing context and stable-hashing state.
760
- fn to_fingerprint ( & self , tcx : TyCtxt ) -> Fingerprint {
760
+ fn to_fingerprint ( & self , tcx : TyCtxt < ' _ , ' _ , ' _ > ) -> Fingerprint {
761
761
let ( def_id_0, def_id_1) = * self ;
762
762
763
763
let def_path_hash_0 = tcx. def_path_hash ( def_id_0) ;
@@ -781,7 +781,7 @@ impl<'a, 'gcx: 'tcx + 'a, 'tcx: 'a> DepNodeParams<'a, 'gcx, 'tcx> for HirId {
781
781
// We actually would not need to specialize the implementation of this
782
782
// method but it's faster to combine the hashes than to instantiate a full
783
783
// hashing context and stable-hashing state.
784
- fn to_fingerprint ( & self , tcx : TyCtxt ) -> Fingerprint {
784
+ fn to_fingerprint ( & self , tcx : TyCtxt < ' _ , ' _ , ' _ > ) -> Fingerprint {
785
785
let HirId {
786
786
owner,
787
787
local_id : ItemLocalId ( local_id) ,
0 commit comments