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

Reuse existing Somes in Option::(x)or #116481

Merged
merged 1 commit into from
Oct 6, 2023

Commits on Oct 6, 2023

  1. Reuse existing Somes in Option::(x)or

    LLVM still has trouble re-using discriminants sometimes when rebuilding a two-variant enum, so when we have the correct variant already built, just use it.
    
    That's simpler in LLVM *and* in MIR, so might as well: <https://rust.godbolt.org/z/KhdE8eToW>
    scottmcm committed Oct 6, 2023
    Configuration menu
    Copy the full SHA
    5432d13 View commit details
    Browse the repository at this point in the history