{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreiahmuf4sxq3oce6srxxkuwl2bkihaohuyqdq2l76a4oadkwdvyk6e",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mno4gzerotb2"
},
"path": "/t/make-derive-copy-enough-for-both-clone-and-copy/24371#post_18",
"publishedAt": "2026-06-07T01:15:54.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "HKalbasi:\n\n> That 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)]`.\n\nI disagree: I might have valid reasons to have custom code in `eq()` but `Eq` is still the same. In fact I did that in the past and also saw it in other places.\n\nBut even if this is true, As you yourself said that making this change _now_ is a whole different matter. And saving typing 7 letters does not justify a serious language and compiler complexity, even not considering all negative effects others have cited, IMO.",
"title": "Make `#[derive(Copy)]` enough for both `Clone` and `Copy`"
}