ICE: "Expected ConstKind::Param" in PatCtxt::lower_inline_const #104277
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.
Found by fuzzing with a modified fuzz-rustc
Code
Error output
Full output with backtrace
Regression
This input has ICEd for a year, but the failure point has changed during that time:
2021-11-10: first ice
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: InterpErrorInfo(InterpErrorInfoInner { kind: referenced constant has errors, backtrace: None })', compiler/rustc_const_eval/src/const_eval/mod.rs:146:41
2021-11-24: ice no longer requires
#![feature(inline_const)]
2022-05-19: changed to "Expected either ConstKind::Param or ConstKind::Unevaluated"
2022-09-18: changed to "Expected ConstKind::Param"
Version
The text was updated successfully, but these errors were encountered: