File tree 1 file changed +9
-2
lines changed
compiler/rustc_middle/src/dep_graph
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ pub mod dep_kind {
230
230
is_anon : true ,
231
231
is_eval_always : false ,
232
232
233
- can_reconstruct_query_key : || false ,
233
+ can_reconstruct_query_key : || true ,
234
234
force_from_dep_node : |_, _| false ,
235
235
try_load_from_on_disk_cache : |_, _| { } ,
236
236
} ;
@@ -257,7 +257,6 @@ pub mod dep_kind {
257
257
258
258
#[ inline( always) ]
259
259
fn can_reconstruct_query_key( ) -> bool {
260
- !is_anon &&
261
260
<query_keys:: $variant<' _> as DepNodeParams <TyCtxt <' _>>>
262
261
:: can_reconstruct_query_key( )
263
262
}
@@ -267,6 +266,10 @@ pub mod dep_kind {
267
266
}
268
267
269
268
fn force_from_dep_node( tcx: TyCtxt <' _>, dep_node: & DepNode ) -> bool {
269
+ if is_anon {
270
+ return false ;
271
+ }
272
+
270
273
if !can_reconstruct_query_key( ) {
271
274
return false ;
272
275
}
@@ -285,6 +288,10 @@ pub mod dep_kind {
285
288
}
286
289
287
290
fn try_load_from_on_disk_cache( tcx: TyCtxt <' _>, dep_node: & DepNode ) {
291
+ if is_anon {
292
+ return
293
+ }
294
+
288
295
if !can_reconstruct_query_key( ) {
289
296
return
290
297
}
You can’t perform that action at this time.
0 commit comments