Skip to content

Support lowercase error codes in --explain #86518

Closed
@Skalman

Description

@Skalman

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

Labels

A-driverArea: rustc_driver that ties everything together into the `rustc` compilerA-error-codesArea: Explanation of an error code (--explain)C-enhancementCategory: 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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions