Skip to content

Conversation

@tgross35
Copy link
Contributor

@tgross35 tgross35 commented Nov 2, 2025

1.63 doesn't support deriving PartialEq on non-Copy packed structs and will error out here because it doesn't realize Copy is added later. Swapping the order of the derives resolves this issue and enables us to derive extra_traits even on packed structs.

1.63 doesn't support deriving `PartialEq` on non-`Copy` packed structs
and will error out here because it doesn't realize `Copy` is added
later. Swapping the order of the derives resolves this issue and enables
us to derive `extra_traits` even on packed structs.
@tgross35 tgross35 added this pull request to the merge queue Nov 2, 2025
Merged via the queue into rust-lang:main with commit 79d1bdb Nov 2, 2025
51 checks passed
@tgross35 tgross35 deleted the derive-order branch November 2, 2025 17:13
@tgross35
Copy link
Contributor Author

tgross35 commented Nov 3, 2025

@rustbot label +stable-nominated

@rustbot rustbot added the stable-nominated This PR should be considered for cherry-pick to libc's stable release branch label Nov 3, 2025
tgross35 added a commit to tgross35/rust-libc that referenced this pull request Nov 4, 2025
1.63 doesn't support deriving `PartialEq` on non-`Copy` packed structs
and will error out here because it doesn't realize `Copy` is added
later. Swapping the order of the derives resolves this issue and enables
us to derive `extra_traits` even on packed structs.

(backport <rust-lang#4807>)
(cherry picked from commit 79d1bdb)
@tgross35 tgross35 mentioned this pull request Nov 4, 2025
github-merge-queue bot pushed a commit that referenced this pull request Nov 4, 2025
1.63 doesn't support deriving `PartialEq` on non-`Copy` packed structs
and will error out here because it doesn't realize `Copy` is added
later. Swapping the order of the derives resolves this issue and enables
us to derive `extra_traits` even on packed structs.

(backport <#4807>)
(cherry picked from commit 79d1bdb)
@tgross35 tgross35 added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stable-applied This PR has been cherry-picked to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants