@@ -22,7 +22,7 @@ use middle::dependency_format;
22
22
use session:: search_paths:: PathKind ;
23
23
use session:: config:: { DebugInfoLevel , OutputType } ;
24
24
use ty:: tls;
25
- use util:: nodemap:: { FxHashMap , FxHashSet } ;
25
+ use util:: nodemap:: { FxHashSet } ;
26
26
use util:: common:: { duration_to_secs_str, ErrorReported } ;
27
27
use util:: common:: ProfileQueriesMsg ;
28
28
@@ -93,7 +93,7 @@ pub struct Session {
93
93
pub plugin_llvm_passes : OneThread < RefCell < Vec < String > > > ,
94
94
pub plugin_attributes : OneThread < RefCell < Vec < ( String , AttributeType ) > > > ,
95
95
pub crate_types : Once < Vec < config:: CrateType > > ,
96
- pub dependency_formats : RefCell < dependency_format:: Dependencies > ,
96
+ pub dependency_formats : Once < dependency_format:: Dependencies > ,
97
97
/// The crate_disambiguator is constructed out of all the `-C metadata`
98
98
/// arguments passed to the compiler. Its value together with the crate-name
99
99
/// forms a unique global identifier for the crate. It is used to allow
@@ -1097,7 +1097,7 @@ pub fn build_session_(
1097
1097
plugin_llvm_passes : OneThread :: new ( RefCell :: new ( Vec :: new ( ) ) ) ,
1098
1098
plugin_attributes : OneThread :: new ( RefCell :: new ( Vec :: new ( ) ) ) ,
1099
1099
crate_types : Once :: new ( ) ,
1100
- dependency_formats : RefCell :: new ( FxHashMap ( ) ) ,
1100
+ dependency_formats : Once :: new ( ) ,
1101
1101
crate_disambiguator : Once :: new ( ) ,
1102
1102
features : Once :: new ( ) ,
1103
1103
recursion_limit : Once :: new ( ) ,
0 commit comments