@@ -22,7 +22,7 @@ use middle::dependency_format;
2222use session:: search_paths:: PathKind ;
2323use session:: config:: { DebugInfoLevel , OutputType } ;
2424use ty:: tls;
25- use util:: nodemap:: { FxHashMap , FxHashSet } ;
25+ use util:: nodemap:: { FxHashSet } ;
2626use util:: common:: { duration_to_secs_str, ErrorReported } ;
2727use util:: common:: ProfileQueriesMsg ;
2828
@@ -93,7 +93,7 @@ pub struct Session {
9393 pub plugin_llvm_passes : OneThread < RefCell < Vec < String > > > ,
9494 pub plugin_attributes : OneThread < RefCell < Vec < ( String , AttributeType ) > > > ,
9595 pub crate_types : Once < Vec < config:: CrateType > > ,
96- pub dependency_formats : RefCell < dependency_format:: Dependencies > ,
96+ pub dependency_formats : Once < dependency_format:: Dependencies > ,
9797 /// The crate_disambiguator is constructed out of all the `-C metadata`
9898 /// arguments passed to the compiler. Its value together with the crate-name
9999 /// forms a unique global identifier for the crate. It is used to allow
@@ -1097,7 +1097,7 @@ pub fn build_session_(
10971097 plugin_llvm_passes : OneThread :: new ( RefCell :: new ( Vec :: new ( ) ) ) ,
10981098 plugin_attributes : OneThread :: new ( RefCell :: new ( Vec :: new ( ) ) ) ,
10991099 crate_types : Once :: new ( ) ,
1100- dependency_formats : RefCell :: new ( FxHashMap ( ) ) ,
1100+ dependency_formats : Once :: new ( ) ,
11011101 crate_disambiguator : Once :: new ( ) ,
11021102 features : Once :: new ( ) ,
11031103 recursion_limit : Once :: new ( ) ,
0 commit comments