1
1
use rustc_data_structures:: fingerprint:: Fingerprint ;
2
- use rustc_data_structures:: fx:: { FxHashMap , FxHashSet , FxIndexMap } ;
2
+ use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
3
3
use rustc_data_structures:: profiling:: { EventId , QueryInvocationId , SelfProfilerRef } ;
4
4
use rustc_data_structures:: sharded:: { self , Sharded } ;
5
5
use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher } ;
@@ -93,7 +93,7 @@ pub struct DepGraphData<K: DepKind> {
93
93
/// things available to us. If we find that they are not dirty, we
94
94
/// load the path to the file storing those work-products here into
95
95
/// this map. We can later look for and extract that data.
96
- previous_work_products : FxIndexMap < WorkProductId , WorkProduct > ,
96
+ previous_work_products : WorkProductMap ,
97
97
98
98
dep_node_debug : Lock < FxHashMap < DepNode < K > , String > > ,
99
99
@@ -116,7 +116,7 @@ impl<K: DepKind> DepGraph<K> {
116
116
pub fn new (
117
117
profiler : & SelfProfilerRef ,
118
118
prev_graph : SerializedDepGraph < K > ,
119
- prev_work_products : FxIndexMap < WorkProductId , WorkProduct > ,
119
+ prev_work_products : WorkProductMap ,
120
120
encoder : FileEncoder ,
121
121
record_graph : bool ,
122
122
record_stats : bool ,
@@ -688,7 +688,7 @@ impl<K: DepKind> DepGraph<K> {
688
688
689
689
/// Access the map of work-products created during the cached run. Only
690
690
/// used during saving of the dep-graph.
691
- pub fn previous_work_products ( & self ) -> & FxIndexMap < WorkProductId , WorkProduct > {
691
+ pub fn previous_work_products ( & self ) -> & WorkProductMap {
692
692
& self . data . as_ref ( ) . unwrap ( ) . previous_work_products
693
693
}
694
694
@@ -1051,6 +1051,8 @@ pub struct WorkProduct {
1051
1051
pub saved_files : UnordMap < String , String > ,
1052
1052
}
1053
1053
1054
+ pub type WorkProductMap = UnordMap < WorkProductId , WorkProduct > ;
1055
+
1054
1056
// Index type for `DepNodeData`'s edges.
1055
1057
rustc_index:: newtype_index! {
1056
1058
struct EdgeIndex { }
0 commit comments