Rust Internals
Optimizing layout of nested enums?
compiler
SimonSapin
April 17, 2017, 3:05pm
10
Not rouding size of types up to a multiple of alignment?
is possibly related.
show post in topic
Related topics
Topic
Replies
Views
Activity
Pre-RFC - Add alignment niches for references
language design
18
3256
December 10, 2021
A #[repr] to allow an enum containing enums to use a single discriminant
language design
14
1797
February 10, 2020
For structs that have fields that have only one possible representation, enums should use that field as the discriminant
language design
5
275
June 8, 2026
Unreachable variants of enum still impact layout
language design
10
1620
June 17, 2022
Store Option discriminant in Containing type (optimization)
compiler
6
768
May 9, 2025