Avoid an unnecessary clone for copy_cgu_workproduct_to_incr_comp_cache_dir calls

This commit is contained in:
bjorn3 2022-05-13 12:18:13 +00:00
parent d5cb2bee82
commit 5a1a111b52

View File

@ -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),
)
};