rust/compiler
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
..
2021-10-10 15:38:19 +02:00
2021-10-08 19:32:16 +03:00
2021-10-10 19:59:36 +01:00
2021-10-10 15:38:19 +02:00
2021-10-06 19:36:52 +00:00
2021-10-10 15:38:19 +02:00
2021-10-10 15:38:19 +02:00
2021-10-07 11:29:47 -07:00
2021-10-07 22:31:33 +02:00
2021-10-10 15:38:19 +02:00
2021-10-08 20:07:44 +02:00