22//! generate the actual methods on tcx which find and execute the provider,
33//! manage the caches, and so forth.
44
5+ use crate :: dep_graph:: DepKind ;
56use crate :: dep_graph:: { DepContext , DepNode , DepNodeIndex , DepNodeParams , TaskDeps } ;
67use crate :: query:: caches:: QueryCache ;
78use crate :: query:: config:: { QueryDescription , QueryVtable } ;
89use crate :: query:: job:: {
910 report_cycle, QueryInfo , QueryJob , QueryJobId , QueryJobInfo , QueryShardJobId ,
1011} ;
1112use crate :: query:: { QueryContext , QueryMap , QuerySideEffects , QueryStackFrame } ;
12- use crate :: dep_graph:: DepKind ;
1313use rustc_data_structures:: fingerprint:: Fingerprint ;
1414use rustc_data_structures:: fx:: { FxHashMap , FxHasher } ;
1515#[ cfg( parallel_compiler) ]
@@ -440,7 +440,7 @@ where
440440 // Fast path for when incr. comp. is off.
441441 if !dep_graph. is_fully_enabled ( ) {
442442 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) ) ;
444444 let dep_node_index = dep_graph. next_virtual_depnode_index ( ) ;
445445 prof_timer. finish_with_query_invocation_id ( dep_node_index. into ( ) ) ;
446446 return ( result, dep_node_index) ;
@@ -453,7 +453,7 @@ where
453453
454454 // The diagnostics for this query will be promoted to the current session during
455455 // `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 , || {
457457 try_load_from_disk_and_cache_in_memory ( tcx, & key, & dep_node, query)
458458 } ) {
459459 return ret;
@@ -463,7 +463,7 @@ where
463463 let prof_timer = tcx. dep_context ( ) . profiler ( ) . query_provider ( ) ;
464464 let diagnostics = Lock :: new ( ThinVec :: new ( ) ) ;
465465
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) , || {
467467 if query. anon {
468468 return dep_graph. with_anon_task ( * tcx. dep_context ( ) , query. dep_kind , || {
469469 query. compute ( * tcx. dep_context ( ) , key)
0 commit comments