rust/compiler/rustc_const_eval/src
Tomasz Miąsko c2da477853 Fix pretty printing of enums without variants
92d20c4aad removed no-variants special
case from try_destructure_const with expectation that this case would be
handled gracefully when read_discriminant returns an error.

Alas in that case read_discriminant succeeds while returning a
non-existing variant, so the special case is still necessary.
2022-02-19 17:10:11 +01:00
..
const_eval Fix pretty printing of enums without variants 2022-02-19 17:10:11 +01:00
interpret Overhaul Const. 2022-02-15 16:19:59 +11:00
transform Overhaul Const. 2022-02-15 16:19:59 +11:00
util Handle Fn family trait call errror 2022-02-12 19:24:43 +11:00
lib.rs Support pretty printing of invalid constants 2022-02-16 00:38:59 +01:00