You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of rust-lang#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.
Fixesrust-lang#95271.
Fixesrust-lang#96299.
Fixesrust-lang#96512.
Fixesrust-lang#97378.
r? `@nikomatsakis` `@arora-aman`
0 commit comments