@@ -17,7 +17,7 @@ use back::linker::LinkerInfo;
17
17
use back:: symbol_export:: ExportedSymbols ;
18
18
use base;
19
19
use 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} ;
21
21
use rustc:: dep_graph:: { WorkProduct , WorkProductId , WorkProductFileKind } ;
22
22
use rustc:: middle:: cstore:: { LinkMeta , EncodedMetadata } ;
23
23
use rustc:: session:: config:: { self , OutputFilenames , OutputType , Passes , SomePasses ,
@@ -1021,7 +1021,7 @@ pub fn start_async_translation(tcx: TyCtxt,
1021
1021
}
1022
1022
}
1023
1023
1024
- fn generate_module_artifacts (
1024
+ fn copy_all_cgu_workproducts_to_incr_comp_cache_dir (
1025
1025
sess : & Session ,
1026
1026
compiled_modules : & CompiledModules
1027
1027
) -> FxHashMap < WorkProductId , WorkProduct > {
@@ -1044,7 +1044,8 @@ fn generate_module_artifacts(
1044
1044
files. push ( ( WorkProductFileKind :: BytecodeCompressed , path. clone ( ) ) ) ;
1045
1045
}
1046
1046
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) {
1048
1049
work_products. insert ( id, product) ;
1049
1050
}
1050
1051
}
@@ -2265,7 +2266,8 @@ impl OngoingCrateTranslation {
2265
2266
time_graph. dump ( & format ! ( "{}-timings" , self . crate_name) ) ;
2266
2267
}
2267
2268
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) ;
2269
2271
2270
2272
produce_final_output_artifacts ( sess,
2271
2273
& compiled_modules,
0 commit comments