Missed optimization: Option<fieldless enum> equality #72646
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
C-optimization
Category: An issue highlighting optimization opportunities or PRs implementing such
I-slow
Issue: Problems and improvements with respect to performance of generated code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This is similar to #49892, but different.
It's not limited to non-zero integer types. This happens for any types that have holes but no uninitialized bits.
I think comparing
Option<some fieldless enum>
values is not uncommon, so it adds to the severity of the issue.To reproduce
Expected result
Actual result
Meta
This happens both on 1.43.0 stable and on the recent nightly:
The text was updated successfully, but these errors were encountered: