cleanup: Declare more padding fields as private Padding's#4859
Conversation
|
For anything where the padding field is private, I'm happy to apply this change and get it into a release in the next day or two. Would you mind splitting these out to a separate commit or PR? For everything where the field is public, we can do the change in |
2bcd48f to
a33c485
Compare
For this you can feel free to include anything that is a tier 3 target since occasional breaking changes are fine. freebsd-riscv, openbsd, cygwin, haiku, hurd, csky, mips, riscv32, hexagon, uclibc, and newlib all fall into this category. |
a33c485 to
643c3bd
Compare
b65a896 to
73bf773
Compare
Sure thing, let me play here to see the failures I can't replicate locally in CI first :) |
1617435 to
ba3218b
Compare
|
@rustbot ready |
|
Sorry I forgot to get back to you here!
Would you mind splitting the changes for these platforms to a separate PR? I'll backport those, since we can do these minor breaking changes to tier 3 targets. The rest can't be backported. |
|
Reminder, once the PR becomes ready for a review, use |
ba3218b to
54a5e03
Compare
This comment has been minimized.
This comment has been minimized.
|
@rustbot ready @JohnTitor done |
|
Sorry for the delay, looks great so far. Could you squash commits into one? |
I guess you can do during merge in github, however this looks to me a quite weird policy |
|
We do a rebase merge in the merge queue, and the change here is tiny and semantically has the same purpose, so squashign is preferred to me. |
Some were already done, more were missing
As previous commit, but tackle the *padding* fields
|
Some changes occurred in an Android module cc @maurer |
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Description
We have more fields that are padding areas that are currently marked as
public and not marked as Padding, which is causing the generated Hash
and PartialEq implementations to take care of them wrongly.
So fix them
Sources
Checklist
libc-test/semverhave been updated*LASTor*MAXareincluded (see #3131)
cd libc-test && cargo test --target mytarget);especially relevant for platforms that may not be checked in CI