Miscompilation with enums #121996
Labels
A-codegen
Area: Code generation
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
C-bug
Category: This is a bug.
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
llvm-fixed-upstream
Issue expected to be fixed by the next major LLVM upgrade, or backported fixes
P-high
High priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Fuzzer generated custom MIR
This code has UB under Stacked Borrows, but UB-free under Tree Borrows.
Right:
Wrong:
While it looks like an LLVM issue, I couldn't get an IR-only reproduction. It's possible that rustc is producing IR with UBs
On latest nightly
cc @RalfJung
The text was updated successfully, but these errors were encountered: