Signed integer division can panic even when overflow checks are disabled #86099
Labels
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code with
-C overflow-checks=off
:I expected to see this happen: It does not panic since overflow checks are disabled, and per the reference this doesn't panic when overflow checks are disabled
Instead, this happened: It panics with
attempt to calculate the remainder with overflow
Meta
rustc --version --verbose
:Backtrace
I'm not sure if the issue is with
rustc
or the reference here.The text was updated successfully, but these errors were encountered: