@@ -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 ( ) || sess. opts . unstable_opts . disable_incr_comp_backend_caching
467466 {
@@ -2099,11 +2098,7 @@ pub struct OngoingCodegen<B: WriteBackendMethods> {
20992098}
21002099
21012100impl < B : WriteBackendMethods > OngoingCodegen < B > {
2102- pub fn join (
2103- self ,
2104- sess : & Session ,
2105- crate_info : & CrateInfo ,
2106- ) -> ( CompiledModules , FxIndexMap < WorkProductId , WorkProduct > ) {
2101+ pub fn join ( self , sess : & Session , crate_info : & CrateInfo ) -> ( CompiledModules , WorkProductMap ) {
21072102 self . shared_emitter_main . check ( sess, true ) ;
21082103
21092104 let maybe_lto_modules = sess. time ( "join_worker_thread" , || match self . coordinator . join ( ) {
0 commit comments