-
Notifications
You must be signed in to change notification settings - Fork 14k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints
Description
It would be nice if the unknown_lints lint could suggest the correct lint name if a minor typo has been made.
For example using #![warn(dead_cod) should suggest dead_code.
Current output:
Compiling playground v0.0.1 (file:///playground)
warning: unknown lint: `dead_cod`
--> src/main.rs:1:10
|
1 | #![allow(dead_cod)]
| ^^^^^^^^
|
= note: #[warn(unknown_lints)] on by defaultExpected output:
Compiling playground v0.0.1 (file:///playground)
warning: unknown lint: `dead_cod`
--> src/main.rs:1:10
|
1 | #![allow(dead_cod)]
| ^^^^^^^^ did you mean: `dead_code`?
|
= note: #[warn(unknown_lints)] on by defaultMetadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints