-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-driverArea: rustc_driver that ties everything together into the `rustc` compilerArea: rustc_driver that ties everything together into the `rustc` compilerA-error-codesArea: Explanation of an error code (--explain)Area: Explanation of an error code (--explain)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
It would be nice if rustc --explain
supported lowercase error codes:
The current output is:
$ rustc --explain e0106
error: e0106 is not a valid error code
Ideally, the command would work regardless of whether you enter e0106
or E0106
:
$ rustc --explain e0106
This error indicates that a lifetime is missing from a type. If it is an error
inside a function signature, the problem may be with failing to adhere to the
lifetime elision rules (see below).
[...]
Metadata
Metadata
Assignees
Labels
A-driverArea: rustc_driver that ties everything together into the `rustc` compilerArea: rustc_driver that ties everything together into the `rustc` compilerA-error-codesArea: Explanation of an error code (--explain)Area: Explanation of an error code (--explain)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.