mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-27 11:05:06 +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.
For more information about how rustc works, see the rustc dev guide.