You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of rust-lang#139042 - compiler-errors:do-not-optimize-switchint, r=<try>
Do not remove trivial `SwitchInt` with mir-opt-level=0
When mir-opt-level=0, do not optimize out `SwitchInt` terminators that all have the same terminator since it may remove a read which affects miri's ability to detect UB on that operand.
cc `@RalfJung`
Fixesrust-lang/miri#4237
This affects some tests... I guess I could mark them as `mir-opt-level=1`? Not sure.
0 commit comments