Skip to content

Commit e604975

Browse files
committed
Use in_incr_comp_dir_sess in cg_clif
1 parent 39e16da commit e604975

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/driver/aot.rs

+1-2
Original file line numberDiff line numberDiff 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 {}: {}",

0 commit comments

Comments
 (0)