mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-20 18:00:40 +00:00
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>