Unsound mir-opt level 4 with loops and .try_into().unwrap_or()
#108360
Labels
A-mir-opt
Area: MIR optimizations
C-bug
Category: This is a bug.
requires-nightly
This issue requires a nightly compiler in some way.
I tried this code:
run with
I expected to see this happen: doesn't panic
Instead, this happened:
Meta
rustc --version --verbose
:Bisect
searched nightlies: from nightly-2023-02-16 to nightly-2023-02-22
regressed nightly: nightly-2023-02-17
searched commit range: 2d14db3...9a7cc6c
regressed commit: 639377e -> #107449
bisected with cargo-bisect-rustc v0.6.5
Host triple: x86_64-unknown-linux-gnu
Reproduce with:
script.sh:
#!/bin/sh RUSTFLAGS=-Zmir-opt-level=4 cargo run
@rustbot label A-mir-opt requires-nightly
The text was updated successfully, but these errors were encountered: