Closed
Description
Discussion topic for the effect of #[repr(packed)]
and #[repr(align)]
on memory layout.
Both of these attributes have RFCs. We should document what current behavior is, what gotchas to watch out for (e.g., &x.foo
where foo
is a field of a packed struct may not be aligned), and what we can guarantee going forward.