about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-06-07 17:25:43 +0200
committerGitHub <noreply@github.com>2022-06-07 17:25:43 +0200
commitfd76e0eee0c90d4dd82ef168b40be8facb8aa83e (patch)
tree5a068c19aed47d004fc0ea68fd6564da0d8ac548 /compiler/rustc_mir_transform/src/coverage/debug.rs
parenta9c4a7e1aabb478e5dc6d9c324b06c8e810c4bf7 (diff)
parent0e7eca77e13b0021d3763e1470cd15a6c25bf80b (diff)
downloadrust-fd76e0eee0c90d4dd82ef168b40be8facb8aa83e.tar.gz
rust-fd76e0eee0c90d4dd82ef168b40be8facb8aa83e.zip
Rollup merge of #97325 - tmiasko:capture-enum-field, r=arora-aman
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.

Fixes #95271.
Fixes #96299.
Fixes #96512.
Fixes #97378.

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