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-05-23 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2022-05-23 19:07:06 +0200
commit0e7eca77e13b0021d3763e1470cd15a6c25bf80b (patch)
treebbbe18fd1e79d32a436306f87d48bff43809a5ee /compiler/rustc_mir_transform/src/coverage/debug.rs
parent653463731a7f01f519cf85f444869def27f00395 (diff)
downloadrust-0e7eca77e13b0021d3763e1470cd15a6c25bf80b.tar.gz
rust-0e7eca77e13b0021d3763e1470cd15a6c25bf80b.zip
Fix precise field capture of univariant enums
When constructing a MIR from a THIR field expression, introduce an
additional downcast projection before accessing a field of an enum.

When rebasing a place builder on top of a captured place, account for
the fact that a single HIR enum field projection corresponds to two MIR
projection elements: a downcast element and a field element.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions