rustc explain panics with error code longer than 4 digits #140647
Labels
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-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following command line causes rustc to panic:
Based on the panic message, any error code above 9999 likely triggers this panic.
rustc --version --verbose
:It appears that the panicking assertion assumes that code further up the stack does basic validation of the error code, when in fact that isn't happening.
Error output
The text was updated successfully, but these errors were encountered: