Open phip1611 opened 2 years ago
I updated the PR @ehuss . See the latest version here: https://github.com/rust-lang/nomicon/blob/20d86cd0331e1c54bfd85e25326e3e0e41fc979e/src/other-reprs.md
Any more comments?
Sorry for the circumstances on this, I obviously understood something wrong. I tried to improve the description in a way, that others will not fall for the same misleading assumption as me. @ehuss
@ehuss I rebased the PR branch onto the latest master branch.
~The Rust language reference (and my experience, proved by tests) says, that
packed(n)
gives you the ability to align the struct too. This bug probably comes from a past version of Rust, where this wasn't supported.~Currently, the packed documentation doesn't mention the n-parameter.
https://doc.rust-lang.org/reference/type-layout.html