ICE: Next coherence: called Result::unwrap()
on an Err
value: Sorts(ExpectedFound { expected: (), found: str })
#124791
Labels
C-bug
Category: This is a bug.
F-specialization
`#![feature(specialization)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
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.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
WG-trait-system-refactor
The Rustc Trait System Refactor Initiative (-Znext-solver)
Context
This was minimized from
library/alloc
. Relevant to #121848 (the stabilization of-Znext-solver=coherence
).This is related to the open issue #124702 and the closed issue #124422.
However, contrary to those, this issue represents a pass→ICE regression, not just an error→ICE one.
Furthermore, it only uses the feature
min_specialization
(and not the more generalspecialization
)as it solely relies on assoc fn specialization (and not assoc type specialization).
Reproducer
rustc allok.rs -Znext-solver=coherence
whereallok.rs
contains:Compiler Output
Full compiler output (incl. backtrace)
Meta
HEAD~1
wrt. to an earlier iteration of PR #121848)The text was updated successfully, but these errors were encountered: