about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-20 00:37:28 +0100
committerGitHub <noreply@github.com>2022-02-20 00:37:28 +0100
commitf2d4ffe81cd85efd7449caf6551418da11d8b742 (patch)
tree252479d096bfdd40ce693ae8ce0b0bfcc7d1cd06 /compiler/rustc_mir_transform/src/coverage/debug.rs
parent9e9cc66e428b5a073d5583fb0071c629e1c8bc52 (diff)
parentc2da477853e1bd8e3a6077d17efabc7dc9b1b792 (diff)
downloadrust-f2d4ffe81cd85efd7449caf6551418da11d8b742.tar.gz
rust-f2d4ffe81cd85efd7449caf6551418da11d8b742.zip
Rollup merge of #94093 - tmiasko:pp-no-variants, r=oli-obk
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.

Fixes #94073.

r? ````@oli-obk````
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions