about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2022-05-13 12:20:32 +0000
committerbjorn3 <bjorn3@users.noreply.github.com>2022-06-06 12:38:38 +0000
commitbbb850931fa5ccdb23eaaaead853084f49f9b2c6 (patch)
treec11bb47bc63d1f8881f53c4df140c877ac0992de
parent5a1a111b52c26b4ecda7a81b1db5766c8b8f0a01 (diff)
downloadrust-bbb850931fa5ccdb23eaaaead853084f49f9b2c6.tar.gz
rust-bbb850931fa5ccdb23eaaaead853084f49f9b2c6.zip
Factor Option out of copy_cgu_workproduct_to_incr_comp_cache_dir call
This improves clarity of the code a bit
-rw-r--r--src/driver/aot.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/driver/aot.rs b/src/driver/aot.rs
index ef8fc14a5a0..b652b58cb65 100644
--- a/src/driver/aot.rs
+++ b/src/driver/aot.rs
@@ -66,11 +66,7 @@ fn emit_module(
     let work_product = if backend_config.disable_incr_cache {
         None
     } else {
-        rustc_incremental::copy_cgu_workproduct_to_incr_comp_cache_dir(
-            tcx.sess,
-            &name,
-            Some(&tmp_file),
-        )
+        rustc_incremental::copy_cgu_workproduct_to_incr_comp_cache_dir(tcx.sess, &name, &tmp_file)
     };
 
     ModuleCodegenResult(