]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #86533 - inquisitivecrystal:lower-case-error-explain, r=petrochenkov
authorYuki Okushi <jtitor@2k36.org>
Thu, 24 Jun 2021 04:47:35 +0000 (13:47 +0900)
committerGitHub <noreply@github.com>
Thu, 24 Jun 2021 04:47:35 +0000 (13:47 +0900)
commit6b618c82ba6e124dbc84419e43670f702735b076
tree0440a9d27cfc2e3c3047c4565736eb6a25334198
parent0fa4f0ba6207ac8c8d1503f14f284d38b8fef81c
parent0bb6bc40ce8d544ca41006d3faf8bcda2152030f
Rollup merge of #86533 - inquisitivecrystal:lower-case-error-explain, r=petrochenkov

Support lowercase error codes in `--explain`

This enables `rustc --explain` to accept a lowercase error code. Thus, for instance, `rustc --explain e0573` would be valid after this change, where before a user would have needed to do `rustc --explain E0573`. Although the upper case form of an error code is canonical, the user may prefer the easier-to-type lowercase form, and there's nothing to be gained by forcing them to type the upper case version.

Resolves #86518.