{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreifvlvblorrl2dngvxrf7oxvokg4l7vyfvczb5otofxyvviiqmztfy",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mnl5vg6lzdb2"
  },
  "path": "/t/make-derive-copy-enough-for-both-clone-and-copy/24371#post_16",
  "publishedAt": "2026-06-05T21:21:26.000Z",
  "site": "https://internals.rust-lang.org",
  "textContent": "dlight:\n\n> I think the right feature for abbreviating long derive lines is some kind of derive alias.\n\nI agree that this is a useful feature, but I think having `Eq` derive `PartialEq` as well and `Copy` derive `Clone` as well is good even in presence of that feature.\n\nThat is, if we were going to design a Rust-like language today, I think having `#[derive(Eq)]` is clearly a better choice than `#[derive(PartialEq, Eq)]`. But the current state of Rust and whether it makes sense to use hacks/editions to prevent breakage is another debate.",
  "title": "Make `#[derive(Copy)]` enough for both `Clone` and `Copy`"
}