1
Fork 0
rust/compiler/rustc_const_eval
Matthias Krüger 345d483e95
Rollup merge of #89859 - RalfJung:write-discriminant, r=oli-obk
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``
2021-10-15 07:44:47 +02:00
..
src Rollup merge of #89859 - RalfJung:write-discriminant, r=oli-obk 2021-10-15 07:44:47 +02:00
Cargo.toml Remove re-export. 2021-10-03 16:08:54 +02:00