@@ -61,18 +61,18 @@ impl<K: DepKind> DepNode<K> {
6161 /// Creates a new, parameterless DepNode. This method will assert
6262 /// that the DepNode corresponding to the given DepKind actually
6363 /// does not require any parameters.
64- pub fn new_no_params < Ctxt > ( tcx : Ctxt , kind : K ) -> DepNode < K >
64+ pub fn new_no_params < Tcx > ( tcx : Tcx , kind : K ) -> DepNode < K >
6565 where
66- Ctxt : super :: DepContext < DepKind = K > ,
66+ Tcx : super :: DepContext < DepKind = K > ,
6767 {
6868 debug_assert_eq ! ( tcx. fingerprint_style( kind) , FingerprintStyle :: Unit ) ;
6969 DepNode { kind, hash : Fingerprint :: ZERO . into ( ) }
7070 }
7171
72- pub fn construct < Ctxt , Key > ( tcx : Ctxt , kind : K , arg : & Key ) -> DepNode < K >
72+ pub fn construct < Tcx , Key > ( tcx : Tcx , kind : K , arg : & Key ) -> DepNode < K >
7373 where
74- Ctxt : super :: DepContext < DepKind = K > ,
75- Key : DepNodeParams < Ctxt > ,
74+ Tcx : super :: DepContext < DepKind = K > ,
75+ Key : DepNodeParams < Tcx > ,
7676 {
7777 let hash = arg. to_fingerprint ( tcx) ;
7878 let dep_node = DepNode { kind, hash : hash. into ( ) } ;
@@ -93,9 +93,9 @@ impl<K: DepKind> DepNode<K> {
9393 /// Construct a DepNode from the given DepKind and DefPathHash. This
9494 /// method will assert that the given DepKind actually requires a
9595 /// single DefId/DefPathHash parameter.
96- pub fn from_def_path_hash < Ctxt > ( tcx : Ctxt , def_path_hash : DefPathHash , kind : K ) -> Self
96+ pub fn from_def_path_hash < Tcx > ( tcx : Tcx , def_path_hash : DefPathHash , kind : K ) -> Self
9797 where
98- Ctxt : super :: DepContext < DepKind = K > ,
98+ Tcx : super :: DepContext < DepKind = K > ,
9999 {
100100 debug_assert ! ( tcx. fingerprint_style( kind) == FingerprintStyle :: DefPathHash ) ;
101101 DepNode { kind, hash : def_path_hash. 0 . into ( ) }
@@ -108,18 +108,18 @@ impl<K: DepKind> fmt::Debug for DepNode<K> {
108108 }
109109}
110110
111- pub trait DepNodeParams < Ctxt : DepContext > : fmt:: Debug + Sized {
111+ pub trait DepNodeParams < Tcx : DepContext > : fmt:: Debug + Sized {
112112 fn fingerprint_style ( ) -> FingerprintStyle ;
113113
114114 /// This method turns the parameters of a DepNodeConstructor into an opaque
115115 /// Fingerprint to be used in DepNode.
116116 /// Not all DepNodeParams support being turned into a Fingerprint (they
117117 /// don't need to if the corresponding DepNode is anonymous).
118- fn to_fingerprint ( & self , _: Ctxt ) -> Fingerprint {
118+ fn to_fingerprint ( & self , _: Tcx ) -> Fingerprint {
119119 panic ! ( "Not implemented. Accidentally called on anonymous node?" )
120120 }
121121
122- fn to_debug_str ( & self , _: Ctxt ) -> String {
122+ fn to_debug_str ( & self , _: Tcx ) -> String {
123123 format ! ( "{:?}" , self )
124124 }
125125
@@ -129,10 +129,10 @@ pub trait DepNodeParams<Ctxt: DepContext>: fmt::Debug + Sized {
129129 /// `fingerprint_style()` is not `FingerprintStyle::Opaque`.
130130 /// It is always valid to return `None` here, in which case incremental
131131 /// compilation will treat the query as having changed instead of forcing it.
132- fn recover ( tcx : Ctxt , dep_node : & DepNode < Ctxt :: DepKind > ) -> Option < Self > ;
132+ fn recover ( tcx : Tcx , dep_node : & DepNode < Tcx :: DepKind > ) -> Option < Self > ;
133133}
134134
135- impl < Ctxt : DepContext , T > DepNodeParams < Ctxt > for T
135+ impl < Tcx : DepContext , T > DepNodeParams < Tcx > for T
136136where
137137 T : for < ' a > HashStable < StableHashingContext < ' a > > + fmt:: Debug ,
138138{
@@ -142,7 +142,7 @@ where
142142 }
143143
144144 #[ inline( always) ]
145- default fn to_fingerprint ( & self , tcx : Ctxt ) -> Fingerprint {
145+ default fn to_fingerprint ( & self , tcx : Tcx ) -> Fingerprint {
146146 tcx. with_stable_hashing_context ( |mut hcx| {
147147 let mut hasher = StableHasher :: new ( ) ;
148148 self . hash_stable ( & mut hcx, & mut hasher) ;
@@ -151,12 +151,12 @@ where
151151 }
152152
153153 #[ inline( always) ]
154- default fn to_debug_str ( & self , _: Ctxt ) -> String {
154+ default fn to_debug_str ( & self , _: Tcx ) -> String {
155155 format ! ( "{:?}" , * self )
156156 }
157157
158158 #[ inline( always) ]
159- default fn recover ( _: Ctxt , _: & DepNode < Ctxt :: DepKind > ) -> Option < Self > {
159+ default fn recover ( _: Tcx , _: & DepNode < Tcx :: DepKind > ) -> Option < Self > {
160160 None
161161 }
162162}
@@ -166,7 +166,7 @@ where
166166/// Information is retrieved by indexing the `DEP_KINDS` array using the integer value
167167/// of the `DepKind`. Overall, this allows to implement `DepContext` using this manual
168168/// jump table instead of large matches.
169- pub struct DepKindStruct < CTX : DepContext > {
169+ pub struct DepKindStruct < Tcx : DepContext > {
170170 /// Anonymous queries cannot be replayed from one compiler invocation to the next.
171171 /// When their result is needed, it is recomputed. They are useful for fine-grained
172172 /// dependency tracking, and caching within one compiler invocation.
@@ -216,10 +216,10 @@ pub struct DepKindStruct<CTX: DepContext> {
216216 /// with kind `MirValidated`, we know that the GUID/fingerprint of the `DepNode`
217217 /// is actually a `DefPathHash`, and can therefore just look up the corresponding
218218 /// `DefId` in `tcx.def_path_hash_to_def_id`.
219- pub force_from_dep_node : Option < fn ( tcx : CTX , dep_node : DepNode < CTX :: DepKind > ) -> bool > ,
219+ pub force_from_dep_node : Option < fn ( tcx : Tcx , dep_node : DepNode < Tcx :: DepKind > ) -> bool > ,
220220
221221 /// Invoke a query to put the on-disk cached value in memory.
222- pub try_load_from_on_disk_cache : Option < fn ( CTX , DepNode < CTX :: DepKind > ) > ,
222+ pub try_load_from_on_disk_cache : Option < fn ( Tcx , DepNode < Tcx :: DepKind > ) > ,
223223}
224224
225225/// A "work product" corresponds to a `.o` (or other) file that we
0 commit comments