thread 'rustc' panicked at 'assertion failed: promoted.is_none()', compiler/rustc_mir/src/transform/check_consts/qualifs.rs:250:9 #81315
Labels
A-const-eval
Area: Constant evaluation (MIR interpretation)
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-high
High priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Hi,
I detected this problem by coincidence and reporting it just because the error message asked to do so.
Code
The problem goes away if I add
#[derive(Clone, Copy)]
tostruct A
, as required for the array initialization insidesetup
.Meta
rustc --version --verbose
:I also verified that the problem exist after updating the toolchain in the version:
Error output
Backtrace
The text was updated successfully, but these errors were encountered: