SimplifyBranchSame assumes discriminant is the same as variant index. #89485
Labels
A-mir-opt
Area: MIR optimizations
C-bug
Category: This is a bug.
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
P-critical
Critical priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
Originally found by @bonega when experimenting with discriminants starting from 1 in #88984 (comment).
@rustbot modify labels: +regression-from-stable-to-stable +I-unsound
The text was updated successfully, but these errors were encountered: