-
Notifications
You must be signed in to change notification settings - Fork 61
Closed
Labels
A-layoutTopic: Related to data structure layout (`#[repr]`)Topic: Related to data structure layout (`#[repr]`)
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.
Metadata
Metadata
Assignees
Labels
A-layoutTopic: Related to data structure layout (`#[repr]`)Topic: Related to data structure layout (`#[repr]`)