Incorrect niche filling if enum contains both i32 min and i32 max variants #49973
Labels
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
Rust 1.23.0 correctly prints
Some(Min)
. Rust 1.24.0 incorrectly printsNone
.Mentioning @eddyb because this sounds potentially relevant to #45225 or follow-on optimization.
(Discovered by @udoprog in #rust.)
The text was updated successfully, but these errors were encountered: