Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reuse existing
Some
s 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>
- Loading branch information