diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-05-23 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-05-23 19:07:06 +0200 |
| commit | 0e7eca77e13b0021d3763e1470cd15a6c25bf80b (patch) | |
| tree | bbbe18fd1e79d32a436306f87d48bff43809a5ee /compiler/rustc_mir_transform/src/coverage/debug.rs | |
| parent | 653463731a7f01f519cf85f444869def27f00395 (diff) | |
| download | rust-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
