Skip to content

Commit 3d26a6f

Browse files
authored
Unrolled build for #146240
Rollup merge of #146240 - hkBst:query-1, r=cjgillot DynamicConfig: use canonical clone impl Fixes clippy warning: ```text warning: non-canonical implementation of `clone` on a `Copy` type --> compiler/rustc_query_impl/src/lib.rs:60:29 | 60 | fn clone(&self) -> Self { | _____________________________^ 61 | | DynamicConfig { dynamic: self.dynamic } 62 | | } | |_____^ help: change this to: `{ *self }` ```
2 parents 76863e3 + a641cfc commit 3d26a6f

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_query_impl/src

1 file changed

+1
-1
lines changed

compiler/rustc_query_impl/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ impl<'tcx, C: QueryCache, const ANON: bool, const DEPTH_LIMIT: bool, const FEEDA
5858
for DynamicConfig<'tcx, C, ANON, DEPTH_LIMIT, FEEDABLE>
5959
{
6060
fn clone(&self) -> Self {
61-
DynamicConfig { dynamic: self.dynamic }
61+
*self
6262
}
6363
}
6464

0 commit comments

Comments
 (0)