forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#56992 - euclio:unknown-lint-suggestion, r=o…
…li-obk suggest similar lint names for unknown lints Fixes rust-lang#54737.
- Loading branch information
Showing
7 changed files
with
69 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
warning: unknown lint: `not_a_real_lint` | ||
--> $DIR/lint-unknown-lint.rs:11:10 | ||
error: unknown lint: `not_a_real_lint` | ||
--> $DIR/lint-unknown-lint.rs:13:10 | ||
| | ||
LL | #![allow(not_a_real_lint)] //~ WARN unknown lint | ||
LL | #![allow(not_a_real_lint)] //~ ERROR unknown lint | ||
| ^^^^^^^^^^^^^^^ | ||
| | ||
= note: #[warn(unknown_lints)] on by default | ||
|
||
error: unused variable: `unused` | ||
--> $DIR/lint-unknown-lint.rs:13:17 | ||
| | ||
LL | fn main() { let unused = (); } //~ ERROR unused variable | ||
| ^^^^^^ help: consider using `_unused` instead | ||
| | ||
note: lint level defined here | ||
--> $DIR/lint-unknown-lint.rs:12:9 | ||
--> $DIR/lint-unknown-lint.rs:11:9 | ||
| | ||
LL | #![deny(unknown_lints)] | ||
| ^^^^^^^^^^^^^ | ||
|
||
error: unknown lint: `dead_cod` | ||
--> $DIR/lint-unknown-lint.rs:15:9 | ||
| | ||
LL | #![deny(unused)] | ||
| ^^^^^^ | ||
= note: #[deny(unused_variables)] implied by #[deny(unused)] | ||
LL | #![deny(dead_cod)] //~ ERROR unknown lint | ||
| ^^^^^^^^ help: did you mean: `dead_code` | ||
|
||
error: aborting due to previous error | ||
error: aborting due to 2 previous errors | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters