atomic_enum
atomic_enum copied to clipboard
Mark the invalid discriminant case as unreachable.
In reality this value should never be invalid. Teaching this to the compiler improves benchmarks for some low-level task polling code I'm working on by 3-4% in practice.