ICE: unexpected type encountered in variance inference
in rustc_hir_analysis/src/variance/constraints.rs
#125957
Labels
C-bug
Category: This is a bug.
F-associated_const_equality
`#![feature(associated_const_equality)]`
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-incomplete-features
This issue requires the use of incomplete features.
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
(hand-reduced & simplified)
(original, 300+ lines)
Meta
rustc --version --verbose
:Error output
Command:
rustc
Backtrace
Note
rustc_hir_analysis/src/variance/constraints.rs L331
rust/compiler/rustc_hir_analysis/src/variance/constraints.rs
Lines 330 to 332 in 7c52d2d
pub struct Equal<const T: usize, const R: usize>();
is erased, an ICE will occur atcompiler/rustc_infer/src/infer/relate/generalize.rs L456
. My guess is that this has already been reported in issue ICE:unexpected infer type
#123140.rust/compiler/rustc_infer/src/infer/relate/generalize.rs
Lines 454 to 457 in 7c52d2d
The text was updated successfully, but these errors were encountered: