mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 11:17:04 +00:00

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.