diff options
| author | klensy <klensy@users.noreply.github.com> | 2024-10-07 22:22:51 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2024-10-28 18:05:08 +0300 |
| commit | 746b675c5aabc7a61443f16a37223720657544d2 (patch) | |
| tree | 63d9413addb96e2884e62e2a7deb01baab84fc37 /compiler/rustc_codegen_ssa/src/back | |
| parent | 0bff99403c03b891995976587e3c92cbf04ded4c (diff) | |
| download | rust-746b675c5aabc7a61443f16a37223720657544d2.tar.gz rust-746b675c5aabc7a61443f16a37223720657544d2.zip | |
fix clippy::clone_on_ref_ptr for compiler
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/write.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/write.rs b/compiler/rustc_codegen_ssa/src/back/write.rs index e3d11cfaf4f..8445d16befb 100644 --- a/compiler/rustc_codegen_ssa/src/back/write.rs +++ b/compiler/rustc_codegen_ssa/src/back/write.rs @@ -514,7 +514,7 @@ pub(crate) fn start_async_codegen<B: ExtraBackendMethods>( future: Some(coordinator_thread), phantom: PhantomData, }, - output_filenames: tcx.output_filenames(()).clone(), + output_filenames: Arc::clone(tcx.output_filenames(())), } } @@ -1203,7 +1203,7 @@ fn start_executing_work<B: ExtraBackendMethods>( coordinator_send, expanded_args: tcx.sess.expanded_args.clone(), diag_emitter: shared_emitter.clone(), - output_filenames: tcx.output_filenames(()).clone(), + output_filenames: Arc::clone(tcx.output_filenames(())), regular_module_config: regular_config, metadata_module_config: metadata_config, allocator_module_config: allocator_config, |
