@@ -17,7 +17,7 @@ use back::linker::LinkerInfo;
1717use back:: symbol_export:: ExportedSymbols ;
1818use base;
1919use consts;
20- use rustc_incremental:: { create_trans_partition , in_incr_comp_dir} ;
20+ use rustc_incremental:: { copy_cgu_workproducts_to_incr_comp_cache_dir , in_incr_comp_dir} ;
2121use rustc:: dep_graph:: { WorkProduct , WorkProductId , WorkProductFileKind } ;
2222use rustc:: middle:: cstore:: { LinkMeta , EncodedMetadata } ;
2323use rustc:: session:: config:: { self , OutputFilenames , OutputType , Passes , SomePasses ,
@@ -1021,7 +1021,7 @@ pub fn start_async_translation(tcx: TyCtxt,
10211021 }
10221022}
10231023
1024- fn generate_module_artifacts (
1024+ fn copy_all_cgu_workproducts_to_incr_comp_cache_dir (
10251025 sess : & Session ,
10261026 compiled_modules : & CompiledModules
10271027) -> FxHashMap < WorkProductId , WorkProduct > {
@@ -1044,7 +1044,8 @@ fn generate_module_artifacts(
10441044 files. push ( ( WorkProductFileKind :: BytecodeCompressed , path. clone ( ) ) ) ;
10451045 }
10461046
1047- if let Some ( ( id, product) ) = create_trans_partition ( sess, & module. name , & files) {
1047+ if let Some ( ( id, product) ) =
1048+ copy_cgu_workproducts_to_incr_comp_cache_dir ( sess, & module. name , & files) {
10481049 work_products. insert ( id, product) ;
10491050 }
10501051 }
@@ -2265,7 +2266,8 @@ impl OngoingCrateTranslation {
22652266 time_graph. dump ( & format ! ( "{}-timings" , self . crate_name) ) ;
22662267 }
22672268
2268- let work_products = generate_module_artifacts ( sess, & compiled_modules) ;
2269+ let work_products = copy_all_cgu_workproducts_to_incr_comp_cache_dir ( sess,
2270+ & compiled_modules) ;
22692271
22702272 produce_final_output_artifacts ( sess,
22712273 & compiled_modules,
0 commit comments