File tree 1 file changed +1
-2
lines changed
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -68,14 +68,13 @@ fn reuse_workproduct_for_cgu(
68
68
cgu : & CodegenUnit < ' _ > ,
69
69
work_products : & mut FxHashMap < WorkProductId , WorkProduct > ,
70
70
) -> CompiledModule {
71
- let incr_comp_session_dir = tcx. sess . incr_comp_session_dir ( ) ;
72
71
let mut object = None ;
73
72
let work_product = cgu. work_product ( tcx) ;
74
73
if let Some ( saved_file) = & work_product. saved_file {
75
74
let obj_out =
76
75
tcx. output_filenames ( ( ) ) . temp_path ( OutputType :: Object , Some ( & cgu. name ( ) . as_str ( ) ) ) ;
77
76
object = Some ( obj_out. clone ( ) ) ;
78
- let source_file = rustc_incremental:: in_incr_comp_dir ( & incr_comp_session_dir , & saved_file) ;
77
+ let source_file = rustc_incremental:: in_incr_comp_dir_sess ( & tcx . sess , & saved_file) ;
79
78
if let Err ( err) = rustc_fs_util:: link_or_copy ( & source_file, & obj_out) {
80
79
tcx. sess . err ( & format ! (
81
80
"unable to copy {} to {}: {}" ,
You can’t perform that action at this time.
0 commit comments