-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Tracking issue for #[repr(align(x))] on enums #57996
Copy link
Copy link
Closed
rust-lang/reference
#619Labels
B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-langRelevant to the language teamRelevant to the language team
Metadata
Metadata
Assignees
Labels
B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-langRelevant to the language teamRelevant to the language team
Type
Fields
Give feedbackNo fields configured for issues without a type.
RFC 1358 introduced
#[repr(align(x))]on structs (and unions). It mentions:It would be a nice convenience to allow this for enums, especially when they are part of a public API.
would be equivalent to using
AlignX<Foo>everywhere: