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:18:13 +0000
committerbjorn3 <bjorn3@users.noreply.github.com>2022-06-06 12:32:08 +0000
commit065e202b563b7f690b7cc79b8fb5a61150c2976e (patch)
treeb9d9272a04c591c172535088da39a40fb5a5d7b5 /compiler/rustc_codegen_cranelift/src/driver
parent02162c4163f5d1a0e3dc8b552aafaa92d652b279 (diff)
downloadrust-065e202b563b7f690b7cc79b8fb5a61150c2976e.tar.gz
rust-065e202b563b7f690b7cc79b8fb5a61150c2976e.zip
Avoid an unnecessary clone for copy_cgu_workproduct_to_incr_comp_cache_dir calls
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/driver')
-rw-r--r--compiler/rustc_codegen_cranelift/src/driver/aot.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/driver/aot.rs b/compiler/rustc_codegen_cranelift/src/driver/aot.rs
index 0faf1221c83..ef8fc14a5a0 100644
--- a/compiler/rustc_codegen_cranelift/src/driver/aot.rs
+++ b/compiler/rustc_codegen_cranelift/src/driver/aot.rs
@@ -69,7 +69,7 @@ fn emit_module(
         rustc_incremental::copy_cgu_workproduct_to_incr_comp_cache_dir(
             tcx.sess,
             &name,
-            &Some(tmp_file.clone()),
+            Some(&tmp_file),
         )
     };