Skip to content

Guarantee the layout of some unions having a single non-zero-sized field #161

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 17 commits into from
Aug 29, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update reference/src/layout/unions.md
Co-Authored-By: Ralf Jung <[email protected]>
  • Loading branch information
gnzlbg and RalfJung authored Aug 28, 2019
commit 88c91f09ff2a08a0a3abd154ec13511ec21e3347
2 changes: 1 addition & 1 deletion reference/src/layout/unions.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ assert_eq!(align_of::<Zst2>(), 16);
the layout of `U1` is **unspecified** because:

* `Zst2` is not a [1-ZST], and
* `SomeOtherStruct` has an unspecified layout and could contain padding bits.
* `SomeOtherStruct` has an unspecified layout and could contain padding bytes.

### C-compatible layout ("repr C")

Expand Down