about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src/driver
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
commit906b85157cc7928d86fd186a255f3fd89543aca8 (patch)
tree1fb4112c7cca2c3dd0cb9db943ae57c8f95b0bb3 /compiler/rustc_codegen_cranelift/src/driver
parent065e202b563b7f690b7cc79b8fb5a61150c2976e (diff)
downloadrust-906b85157cc7928d86fd186a255f3fd89543aca8.tar.gz
rust-906b85157cc7928d86fd186a255f3fd89543aca8.zip
Factor Option out of copy_cgu_workproduct_to_incr_comp_cache_dir call
This improves clarity of the code a bit
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/driver')
-rw-r--r--compiler/rustc_codegen_cranelift/src/driver/aot.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/driver/aot.rs b/compiler/rustc_codegen_cranelift/src/driver/aot.rs
index ef8fc14a5a0..b652b58cb65 100644
--- a/compiler/rustc_codegen_cranelift/src/driver/aot.rs
+++ b/compiler/rustc_codegen_cranelift/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(