mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-03 17:35:28 +03:00
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 }`
```
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user