2
2
//! generate the actual methods on tcx which find and execute the provider,
3
3
//! manage the caches, and so forth.
4
4
5
+ use crate :: dep_graph:: DepKind ;
5
6
use crate :: dep_graph:: { DepContext , DepNode , DepNodeIndex , DepNodeParams , TaskDeps } ;
6
7
use crate :: query:: caches:: QueryCache ;
7
8
use crate :: query:: config:: { QueryDescription , QueryVtable } ;
8
9
use crate :: query:: job:: {
9
10
report_cycle, QueryInfo , QueryJob , QueryJobId , QueryJobInfo , QueryShardJobId ,
10
11
} ;
11
12
use crate :: query:: { QueryContext , QueryMap , QuerySideEffects , QueryStackFrame } ;
12
- use crate :: dep_graph:: DepKind ;
13
13
use rustc_data_structures:: fingerprint:: Fingerprint ;
14
14
use rustc_data_structures:: fx:: { FxHashMap , FxHasher } ;
15
15
#[ cfg( parallel_compiler) ]
@@ -440,7 +440,7 @@ where
440
440
// Fast path for when incr. comp. is off.
441
441
if !dep_graph. is_fully_enabled ( ) {
442
442
let prof_timer = tcx. dep_context ( ) . profiler ( ) . query_provider ( ) ;
443
- let result = tcx. start_query ( job_id, None , true , || query. compute ( * tcx. dep_context ( ) , key) ) ;
443
+ let result = tcx. start_query ( job_id, None , || query. compute ( * tcx. dep_context ( ) , key) ) ;
444
444
let dep_node_index = dep_graph. next_virtual_depnode_index ( ) ;
445
445
prof_timer. finish_with_query_invocation_id ( dep_node_index. into ( ) ) ;
446
446
return ( result, dep_node_index) ;
@@ -453,7 +453,7 @@ where
453
453
454
454
// The diagnostics for this query will be promoted to the current session during
455
455
// `try_mark_green()`, so we can ignore them here.
456
- if let Some ( ret) = tcx. start_query ( job_id, None , false , || {
456
+ if let Some ( ret) = tcx. start_query ( job_id, None , || {
457
457
try_load_from_disk_and_cache_in_memory ( tcx, & key, & dep_node, query)
458
458
} ) {
459
459
return ret;
@@ -463,7 +463,7 @@ where
463
463
let prof_timer = tcx. dep_context ( ) . profiler ( ) . query_provider ( ) ;
464
464
let diagnostics = Lock :: new ( ThinVec :: new ( ) ) ;
465
465
466
- let ( result, dep_node_index) = tcx. start_query ( job_id, Some ( & diagnostics) , true , || {
466
+ let ( result, dep_node_index) = tcx. start_query ( job_id, Some ( & diagnostics) , || {
467
467
if query. anon {
468
468
return dep_graph. with_anon_task ( * tcx. dep_context ( ) , query. dep_kind , || {
469
469
query. compute ( * tcx. dep_context ( ) , key)
0 commit comments