ICE: overflow computing relative variant idx
in rustc_const_eval/src/interpret/discriminant.rs
#126267
Labels
C-bug
Category: This is a bug.
F-transmutability
`#![feature(transmutability)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
(hand-reduced)
(original)
Meta
rustc --version --verbose
:Error output
Command:
rustc
Backtrace
Notes
compiler/rustc_const_eval/src/interpret/discriminant.rs L288
rust/compiler/rustc_const_eval/src/interpret/discriminant.rs
Lines 276 to 288 in b5b1356
Ethereum
orTokio
removed from enum definition in the reduced ICE triggering code (Line 10, 11), ICE: compiler/rustc_const_eval/src/interpret/discriminant.rs assertion failed 0 != 1 #125811 will be triggered.compiler/rustc_const_eval/src/interpret/discriminant.rs L245
)rust/compiler/rustc_const_eval/src/interpret/discriminant.rs
Lines 243 to 247 in b5b1356
@rustbot label +F-transmutability
The text was updated successfully, but these errors were encountered: