@@ -74,9 +74,6 @@ struct DepGraphData {
74
74
previous_work_products : FxHashMap < WorkProductId , WorkProduct > ,
75
75
76
76
dep_node_debug : Lock < FxHashMap < DepNode , String > > ,
77
-
78
- // Used for testing, only populated when -Zquery-dep-graph is specified.
79
- loaded_from_cache : Lock < FxHashMap < DepNodeIndex , bool > > ,
80
77
}
81
78
82
79
pub fn hash_result < R > ( hcx : & mut StableHashingContext < ' _ > , result : & R ) -> Option < Fingerprint >
@@ -103,7 +100,6 @@ impl DepGraph {
103
100
emitting_diagnostics_cond_var : Condvar :: new ( ) ,
104
101
previous : prev_graph,
105
102
colors : DepNodeColorMap :: new ( prev_graph_node_count) ,
106
- loaded_from_cache : Default :: default ( ) ,
107
103
} ) ) ,
108
104
}
109
105
}
@@ -865,25 +861,6 @@ impl DepGraph {
865
861
}
866
862
}
867
863
}
868
-
869
- pub fn mark_loaded_from_cache ( & self , dep_node_index : DepNodeIndex , state : bool ) {
870
- debug ! ( "mark_loaded_from_cache({:?}, {})" ,
871
- self . data. as_ref( ) . unwrap( ) . current. borrow( ) . data[ dep_node_index] . node,
872
- state) ;
873
-
874
- self . data
875
- . as_ref ( )
876
- . unwrap ( )
877
- . loaded_from_cache
878
- . borrow_mut ( )
879
- . insert ( dep_node_index, state) ;
880
- }
881
-
882
- pub fn was_loaded_from_cache ( & self , dep_node : & DepNode ) -> Option < bool > {
883
- let data = self . data . as_ref ( ) . unwrap ( ) ;
884
- let dep_node_index = data. current . borrow ( ) . node_to_node_index [ dep_node] ;
885
- data. loaded_from_cache . borrow ( ) . get ( & dep_node_index) . cloned ( )
886
- }
887
864
}
888
865
889
866
/// A "work product" is an intermediate result that we save into the
0 commit comments