@@ -75,9 +75,6 @@ struct DepGraphData {
75
75
previous_work_products : FxHashMap < WorkProductId , WorkProduct > ,
76
76
77
77
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 > > ,
81
78
}
82
79
83
80
pub fn hash_result < R > ( hcx : & mut StableHashingContext < ' _ > , result : & R ) -> Option < Fingerprint >
@@ -104,7 +101,6 @@ impl DepGraph {
104
101
emitting_diagnostics_cond_var : Condvar :: new ( ) ,
105
102
previous : prev_graph,
106
103
colors : DepNodeColorMap :: new ( prev_graph_node_count) ,
107
- loaded_from_cache : Default :: default ( ) ,
108
104
} ) ) ,
109
105
}
110
106
}
@@ -874,25 +870,6 @@ impl DepGraph {
874
870
}
875
871
}
876
872
}
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
- }
896
873
}
897
874
898
875
/// A "work product" is an intermediate result that we save into the
0 commit comments