@@ -135,7 +135,7 @@ pub struct DepKindStruct {
135
135
/// then `force_from_dep_node()` should not fail for it. Otherwise, you can just
136
136
/// add it to the "We don't have enough information to reconstruct..." group in
137
137
/// the match below.
138
- pub ( crate ) force_from_dep_node : fn ( tcx : TyCtxt < ' _ > , dep_node : & DepNode ) -> bool ,
138
+ pub ( crate ) force_from_dep_node : fn ( tcx : QueryCtxt < ' _ > , dep_node : & DepNode ) -> bool ,
139
139
140
140
/// Invoke a query to put the on-disk cached value in memory.
141
141
pub ( crate ) try_load_from_on_disk_cache : fn ( QueryCtxt < ' _ > , & DepNode ) ,
@@ -251,7 +251,7 @@ pub mod dep_kind {
251
251
<query_keys:: $variant<' _> as DepNodeParams <TyCtxt <' _>>>:: recover( tcx, dep_node)
252
252
}
253
253
254
- fn force_from_dep_node( tcx: TyCtxt <' _>, dep_node: & DepNode ) -> bool {
254
+ fn force_from_dep_node( tcx: QueryCtxt <' _>, dep_node: & DepNode ) -> bool {
255
255
if is_anon {
256
256
return false ;
257
257
}
@@ -260,13 +260,8 @@ pub mod dep_kind {
260
260
return false ;
261
261
}
262
262
263
- if let Some ( key) = recover( tcx, dep_node) {
264
- force_query:: <queries:: $variant<' _>, _>(
265
- QueryCtxt { tcx, queries: tcx. queries } ,
266
- key,
267
- DUMMY_SP ,
268
- * dep_node
269
- ) ;
263
+ if let Some ( key) = recover( * tcx, dep_node) {
264
+ force_query:: <queries:: $variant<' _>, _>( tcx, key, DUMMY_SP , * dep_node) ;
270
265
return true ;
271
266
}
272
267
0 commit comments