rust/compiler/rustc_mir_build
Tomasz Miąsko 0e7eca77e1 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.
2022-05-23 19:07:06 +02:00
..
src Fix precise field capture of univariant enums 2022-05-23 19:07:06 +02:00
Cargo.toml Migrate to 2021 2021-09-20 22:21:42 -04:00