ICE - ErrorReporting Overflow should not reach report_selection_err
call
#92148
Labels
C-bug
Category: This is a bug.
glacier
ICE tracked in rust-lang/glacier.
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.
I slipped on ICE while trying to formulate an example of a problem I was showing to some friends. Essentially, I was trying to implement a trait
Trait
to aVec<T>
whereT
itself implsTrait
. The implementation wasn't done yet, but I ran it anyway, and the compilerpanic
ked during the error report with:Code
playground
I messed up with the Generics names, note that I even used a type named
T
that wasn't even declared(my humble guess is that this is the starting point to the overflow).EDIT2: my guess was wrong! The code is soooo fucked up that even using a declared type the compiles stills
panick
ingand this also fails
And, just for the sake of completeness, I was trying to implement this.
Meta
Found it both on Stable and Nightly:
Stable
rustc +stable --version --verbose
:Nightly
rustc +nightly --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: