about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2022-02-17 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2022-02-19 17:10:11 +0100
commitc2da477853e1bd8e3a6077d17efabc7dc9b1b792 (patch)
tree7446203105f981fce67a2e811490f02c88e895fa /compiler/rustc_mir_transform/src/coverage/debug.rs
parente08d5693609a659e45025b8ea4dbd9efa342fa68 (diff)
downloadrust-c2da477853e1bd8e3a6077d17efabc7dc9b1b792.tar.gz
rust-c2da477853e1bd8e3a6077d17efabc7dc9b1b792.zip
Fix pretty printing of enums without variants
92d20c4aaddea9507f8ad37fe37c551219153bbf 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.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions