Missed niche optimization #119055
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 to see this happen:
Choice
has size 1Instead, this happened:
Choice
has size 2Meta
Rust version; 1.74.1
@rustbot label A-layout T-compiler
The text was updated successfully, but these errors were encountered: