@@ -75,9 +75,6 @@ struct DepGraphData {
7575 previous_work_products : FxHashMap < WorkProductId , WorkProduct > ,
7676
7777 dep_node_debug : Lock < FxHashMap < DepNode , String > > ,
78-
79- // Used for testing, only populated when -Zquery-dep-graph is specified.
80- loaded_from_cache : Lock < FxHashMap < DepNodeIndex , bool > > ,
8178}
8279
8380pub fn hash_result < R > ( hcx : & mut StableHashingContext < ' _ > , result : & R ) -> Option < Fingerprint >
@@ -104,7 +101,6 @@ impl DepGraph {
104101 emitting_diagnostics_cond_var : Condvar :: new ( ) ,
105102 previous : prev_graph,
106103 colors : DepNodeColorMap :: new ( prev_graph_node_count) ,
107- loaded_from_cache : Default :: default ( ) ,
108104 } ) ) ,
109105 }
110106 }
@@ -874,25 +870,6 @@ impl DepGraph {
874870 }
875871 }
876872 }
877-
878- pub fn mark_loaded_from_cache ( & self , dep_node_index : DepNodeIndex , state : bool ) {
879- debug ! ( "mark_loaded_from_cache({:?}, {})" ,
880- self . data. as_ref( ) . unwrap( ) . current. borrow( ) . data[ dep_node_index] . node,
881- state) ;
882-
883- self . data
884- . as_ref ( )
885- . unwrap ( )
886- . loaded_from_cache
887- . borrow_mut ( )
888- . insert ( dep_node_index, state) ;
889- }
890-
891- pub fn was_loaded_from_cache ( & self , dep_node : & DepNode ) -> Option < bool > {
892- let data = self . data . as_ref ( ) . unwrap ( ) ;
893- let dep_node_index = data. current . borrow ( ) . node_to_node_index [ dep_node] ;
894- data. loaded_from_cache . borrow ( ) . get ( & dep_node_index) . cloned ( )
895- }
896873}
897874
898875/// A "work product" is an intermediate result that we save into the
0 commit comments