Closed
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 default
Expected 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 default
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
phansch commentedon Oct 2, 2018
I would like to work on this, too
Rollup merge of rust-lang#56992 - euclio:unknown-lint-suggestion, r=o…
Rollup merge of rust-lang#56992 - euclio:unknown-lint-suggestion, r=o…