diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2022-05-13 12:18:13 +0000 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2022-06-06 12:32:08 +0000 |
| commit | 5a1a111b52c26b4ecda7a81b1db5766c8b8f0a01 (patch) | |
| tree | 11737e17bacd942bde1c27958e60054ba1619449 | |
| parent | d5cb2bee82c8bb8553406a0c98f08fa1bf51aad7 (diff) | |
| download | rust-5a1a111b52c26b4ecda7a81b1db5766c8b8f0a01.tar.gz rust-5a1a111b52c26b4ecda7a81b1db5766c8b8f0a01.zip | |
Avoid an unnecessary clone for copy_cgu_workproduct_to_incr_comp_cache_dir calls
| -rw-r--r-- | src/driver/aot.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver/aot.rs b/src/driver/aot.rs index 0faf1221c83..ef8fc14a5a0 100644 --- a/src/driver/aot.rs +++ b/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), ) }; |
