Missed layout optimisation with multiple niches #119507
Labels
A-layout
Area: Memory layout of types
C-optimization
Category: An issue highlighting optimization opportunities or PRs implementing such
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected this program to exit fine, and fit the tag of the second option in the available niche.
Instead, the program panics, as the second option wastes a byte of memory making it's own tag byte.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: