about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-08-30 15:06:56 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2021-09-02 12:29:12 +0200
commite6049759d0c0d0bdef1b37edec03d76f52621746 (patch)
tree8f665306d2c38d519fc1a2af1cc902739744306b
parent39e16da52916f3c22a7c08f165154ad3c7ca9be1 (diff)
downloadrust-e6049759d0c0d0bdef1b37edec03d76f52621746.tar.gz
rust-e6049759d0c0d0bdef1b37edec03d76f52621746.zip
Use in_incr_comp_dir_sess in cg_clif
-rw-r--r--src/driver/aot.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/driver/aot.rs b/src/driver/aot.rs
index a8b802f4494..3de706ed6d7 100644
--- a/src/driver/aot.rs
+++ b/src/driver/aot.rs
@@ -68,14 +68,13 @@ fn reuse_workproduct_for_cgu(
     cgu: &CodegenUnit<'_>,
     work_products: &mut FxHashMap<WorkProductId, WorkProduct>,
 ) -> CompiledModule {
-    let incr_comp_session_dir = tcx.sess.incr_comp_session_dir();
     let mut object = None;
     let work_product = cgu.work_product(tcx);
     if let Some(saved_file) = &work_product.saved_file {
         let obj_out =
             tcx.output_filenames(()).temp_path(OutputType::Object, Some(&cgu.name().as_str()));
         object = Some(obj_out.clone());
-        let source_file = rustc_incremental::in_incr_comp_dir(&incr_comp_session_dir, &saved_file);
+        let source_file = rustc_incremental::in_incr_comp_dir_sess(&tcx.sess, &saved_file);
         if let Err(err) = rustc_fs_util::link_or_copy(&source_file, &obj_out) {
             tcx.sess.err(&format!(
                 "unable to copy {} to {}: {}",