integer overflow in CTFE implementation of rotate_left #61406
Labels
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code ICEs when compiled with a rustc with debug-assertions enabled:
The problem is in the implementation of
rotate_left
, specifically in this line:rust/src/librustc_mir/interpret/intrinsics.rs
Line 197 in 75f4644
The subtraction overflows here.
Cc @oli-obk
The text was updated successfully, but these errors were encountered: