Comment
Comment by anderskaseorg
Might be worth copying the caveat about UB on out-of-range values into the rustified_non_exhaustive_enum section. Otherwise someone who isn’t familiar with #[non_exhaustive] might incorrectly assume that it removes this UB.