Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix precise field capture of univariant enums #97325

Merged
merged 1 commit into from
Jun 7, 2022

Commits on May 23, 2022

  1. 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.
    tmiasko committed May 23, 2022
    Configuration menu
    Copy the full SHA
    0e7eca7 View commit details
    Browse the repository at this point in the history