-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ICE: interpret const eval failure of Unevaluated(..) which is not in required_consts
#141590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
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.
Comments
EDIT. It does not requires any use std::sync::OnceLock;
enum Void {}
static LAZY_INIT: Void = OnceLock::new();
static LAZY_INIT_REF: &[&Void] = &[&LAZY_INIT];
fn main() {} Error outputcommand:
Backtrace
Though it still shows different query stack compared to Issue-138660 @rustbot label -F-never_patterns |
yeah this is probably a duplicate of #138660 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
Code
A mutant of
tests/ui/consts/static-promoted-to-mutable-static.rs
Meta
rustc --version --verbose
:Error output
command:
rustc
Backtrace
Bisects to
tool version:
cargo-bisect-rustc 0.6.9
command:
cargo-bisect-rustc --start=2023-05-01 --end=2024-05-01 --regress ice --preserve --script rustc -- never_2.rs
Notes
ICE location:
compiler/rustc_const_eval/src/interpret/eval_context.rs Line-553
rust/compiler/rustc_const_eval/src/interpret/eval_context.rs
Lines 535 to 555 in 283db70
Issue-138660 has the same ICE location & also regression in
2024-04-25
, but has different query stack and it does not use thenever_patterns
feature. I'm not sure if this report is a duplicated one.@rustbot label +F-never_patterns
The text was updated successfully, but these errors were encountered: