Rollup merge of #140700 - Kivooeo:new-fix-six, r=davidtwco,fmease

Don't crash on error codes passed to `--explain` which exceed our internal limit of 9999

removed panic in case where we do `--explain > 9999` and added check for it

now error looks like this instead of ICE
```
$ rustc.exe --explain E10000
error: E10000 is not a valid error code
```
fixes #140647
r? `@fmease`
This commit is contained in:
Guillaume Gomez 2025-05-07 18:19:06 +02:00 committed by GitHub
commit 27978bcf77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

Diff Content Not Available