File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 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(
6868 cgu : & CodegenUnit < ' _ > ,
6969 work_products : & mut FxHashMap < WorkProductId , WorkProduct > ,
7070) -> CompiledModule {
71- let incr_comp_session_dir = tcx. sess . incr_comp_session_dir ( ) ;
7271 let mut object = None ;
7372 let work_product = cgu. work_product ( tcx) ;
7473 if let Some ( saved_file) = & work_product. saved_file {
7574 let obj_out =
7675 tcx. output_filenames ( ( ) ) . temp_path ( OutputType :: Object , Some ( & cgu. name ( ) . as_str ( ) ) ) ;
7776 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) ;
7978 if let Err ( err) = rustc_fs_util:: link_or_copy ( & source_file, & obj_out) {
8079 tcx. sess . err ( & format ! (
8180 "unable to copy {} to {}: {}" ,
You can’t perform that action at this time.
0 commit comments