-
Notifications
You must be signed in to change notification settings - Fork 139
Closed
Labels
blocking-next-releaseThis issue should be resolved before we release on crates.ioThis issue should be resolved before we release on crates.io
Description
For example, this enum has size 2 despite being #[repr(u8)]:
#[repr(u8, align(2))]
enum Foo {
A,
}This is a subtle edge case; we should audit our derive code to make sure all enum derives handle this case correctly.
This is especially important in combination with #1752 which (as of this writing) synthesizes tag enums with the exact same #[repr(...)] attribute as the user's type, including any align reprs. That is new behavior as of that PR.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
blocking-next-releaseThis issue should be resolved before we release on crates.ioThis issue should be resolved before we release on crates.io