ICE, regression from stable/beta -> nightly: var types encountered in super_relate_consts when trait bound not satisfied #106240
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-diagnostics
Area: Messages for errors, warnings, and lints
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-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Milestone
Regression from stable 1.66 / beta 1.67 -> nightly 1.68 (haven't bisected). Stable/beta correctly produce an error, nightly ICEs. I've also confirmed the behavior on the latest commit to master (9709a43, at time of writing).
Code
Compiler output (ICE text)
Setting
RUST_BACKTRACE=1
produced the same output as above.Preliminary investigation
I tried to dig into this, struggled to make sense of the typechecking code. I think the following is going on:
The text was updated successfully, but these errors were encountered: