mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-04 17:22:19 +00:00
add dedicated error variant for writing the discriminant of an uninhabited enum variant This is conceptually different from hitting an `Unreachable` terminator. Also add some sanity check making sure we don't write discriminants of things that do not have discriminants. r? ``@oli-obk``