about summary refs log tree commit diff
path: root/compiler/rustc_query_impl
diff options
context:
space:
mode:
authorMarijn Schouten <mhkbst@gmail.com>2025-09-05 12:31:56 +0000
committerMarijn Schouten <mhkbst@gmail.com>2025-09-05 12:31:56 +0000
commita641cfc6f37c9f4978b74e416a037c26dc3af7ac (patch)
treea108e69ca023f253e9248bb078676433eb75e598 /compiler/rustc_query_impl
parentad85bc524b1ad696e42061ad8338d382dffbdbe5 (diff)
downloadrust-a641cfc6f37c9f4978b74e416a037c26dc3af7ac.tar.gz
rust-a641cfc6f37c9f4978b74e416a037c26dc3af7ac.zip
DynamicConfig: use canonical clone impl
Diffstat (limited to 'compiler/rustc_query_impl')
-rw-r--r--compiler/rustc_query_impl/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_query_impl/src/lib.rs b/compiler/rustc_query_impl/src/lib.rs
index 306d4dbc4b4..e499e08c82b 100644
--- a/compiler/rustc_query_impl/src/lib.rs
+++ b/compiler/rustc_query_impl/src/lib.rs
@@ -58,7 +58,7 @@ impl<'tcx, C: QueryCache, const ANON: bool, const DEPTH_LIMIT: bool, const FEEDA
     for DynamicConfig<'tcx, C, ANON, DEPTH_LIMIT, FEEDABLE>
 {
     fn clone(&self) -> Self {
-        DynamicConfig { dynamic: self.dynamic }
+        *self
     }
 }