Skip to content

[rust] use explicit repr(C, packed) instead of just repr(packed) #24256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

nbdd0121
Copy link
Contributor

@nbdd0121 nbdd0121 commented Aug 8, 2024

repr(packed) only guarantees no internal padding, not that the fields will not be reordered. See rust-lang/rust#125360

`repr(packed)` only guarantees no internal padding, not that the fields
will not be reordered.

Signed-off-by: Gary Guo <[email protected]>
@nbdd0121 nbdd0121 requested review from mundaym and a team as code owners August 8, 2024 16:21
@nbdd0121 nbdd0121 requested review from timothytrippel, jesultra and jwnrt and removed request for a team August 8, 2024 16:21
@jwnrt jwnrt merged commit fd78577 into lowRISC:master Aug 12, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants