@@ -6,7 +6,6 @@ use std::sync::mpsc::{Receiver, Sender, channel};
66use std:: { assert_matches, fs, io, mem, str, thread} ;
77
88use rustc_abi:: Size ;
9- use rustc_data_structures:: fx:: FxIndexMap ;
109use rustc_data_structures:: jobserver:: { self , Acquired } ;
1110use rustc_data_structures:: profiling:: { SelfProfilerRef , VerboseTimingGuard } ;
1211use rustc_errors:: emitter:: Emitter ;
@@ -22,7 +21,7 @@ use rustc_incremental::{
2221use rustc_macros:: { Decodable , Encodable } ;
2322use rustc_metadata:: fs:: copy_to_stdout;
2423use rustc_middle:: bug;
25- use rustc_middle:: dep_graph:: { WorkProduct , WorkProductId } ;
24+ use rustc_middle:: dep_graph:: { WorkProduct , WorkProductMap } ;
2625use rustc_middle:: ty:: TyCtxt ;
2726use rustc_session:: Session ;
2827use rustc_session:: config:: {
@@ -460,8 +459,8 @@ pub(crate) fn start_async_codegen<B: WriteBackendMethods>(
460459fn copy_all_cgu_workproducts_to_incr_comp_cache_dir (
461460 sess : & Session ,
462461 compiled_modules : & CompiledModules ,
463- ) -> FxIndexMap < WorkProductId , WorkProduct > {
464- let mut work_products = FxIndexMap :: default ( ) ;
462+ ) -> WorkProductMap {
463+ let mut work_products = WorkProductMap :: default ( ) ;
465464
466465 if sess. opts . incremental . is_none ( ) {
467466 return work_products;
@@ -2098,11 +2097,7 @@ pub struct OngoingCodegen<B: WriteBackendMethods> {
20982097}
20992098
21002099impl < B : WriteBackendMethods > OngoingCodegen < B > {
2101- pub fn join (
2102- self ,
2103- sess : & Session ,
2104- crate_info : & CrateInfo ,
2105- ) -> ( CompiledModules , FxIndexMap < WorkProductId , WorkProduct > ) {
2100+ pub fn join ( self , sess : & Session , crate_info : & CrateInfo ) -> ( CompiledModules , WorkProductMap ) {
21062101 self . shared_emitter_main . check ( sess, true ) ;
21072102
21082103 let maybe_lto_modules = sess. time ( "join_worker_thread" , || match self . coordinator . join ( ) {
0 commit comments