Skip to content

Commit a641cfc

Browse files
committed
DynamicConfig: use canonical clone impl
1 parent ad85bc5 commit a641cfc

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)