-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rustc_lint): make
CheckLintName
respect lint level
- Loading branch information
Showing
24 changed files
with
191 additions
and
171 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,6 +1,8 @@ | ||
// compile-flags:-D bogus | ||
// check-pass | ||
|
||
// error-pattern:E0602 | ||
// error-pattern:requested on the command line with `-D bogus` | ||
// error-pattern:`#[warn(unknown_lints)]` on by default | ||
|
||
fn main() {} |
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,11 +1,16 @@ | ||
error[E0602]: unknown lint: `bogus` | ||
warning[E0602]: unknown lint: `bogus` | ||
| | ||
= note: requested on the command line with `-D bogus` | ||
= note: `#[warn(unknown_lints)]` on by default | ||
|
||
error[E0602]: unknown lint: `bogus` | ||
warning[E0602]: unknown lint: `bogus` | ||
| | ||
= note: requested on the command line with `-D bogus` | ||
|
||
error: aborting due to 2 previous errors | ||
warning[E0602]: unknown lint: `bogus` | ||
| | ||
= note: requested on the command line with `-D bogus` | ||
|
||
warning: 3 warnings emitted | ||
|
||
For more information about this error, try `rustc --explain E0602`. |
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,7 +1,11 @@ | ||
// Checks that rustc correctly errors when passed an invalid lint with | ||
// `--force-warn`. This is a regression test for issue #86958. | ||
// | ||
|
||
// check-pass | ||
// compile-flags: --force-warn foo-qux | ||
|
||
// error-pattern: unknown lint: `foo_qux` | ||
// error-pattern: requested on the command line with `--force-warn foo_qux` | ||
// error-pattern: `#[warn(unknown_lints)]` on by default | ||
|
||
fn main() {} |
Oops, something went wrong.