ICE: missing type for static
item crashes due to LazyCell/LazyLock
#128198
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) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Omitting the explicit type when specifying a
static
variable crashes the compiler, if the right-hand side of the assignment is aLazyCell
orLazyLock
.Code
Rustc Version
Error output
Backtrace
Relevant Rustc code
The assertion in line 740 fails.
rust/compiler/rustc_const_eval/src/interpret/validity.rs
Lines 706 to 751 in 0514789
The text was updated successfully, but these errors were encountered: