External Publication
Visit Post

Make `#[derive(Copy)]` enough for both `Clone` and `Copy`

Rust Internals [Unofficial] June 6, 2026
Source

HKalbasi:

What do you mean by changing Clone?

Sorry I was thinking faster than I could write

I meant changing the Clone/Copy macros. For example macro_rules_attribute uses Copy!, so the original Clone and Copy remain valid and there's no downside of potential breakage as opposed to your proposal.

Discussion in the ATmosphere

Loading comments...