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.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton