Missing optimization with transmute_copy
on enums
#113848
Labels
C-bug
Category: This is a bug.
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.
Similar to #109958, but with
transmute_copy
. Transmuting a fieldless enum to it's integer type causes the optimizer to lose track of it's possible values.Example:
cc Lokathor/bytemuck#175
The text was updated successfully, but these errors were encountered: