-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
158 additions
and
100 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
4 changes: 2 additions & 2 deletions
4
...sts/actual_tests/wrong_diagnostic_code.rs → ...tual_tests_bless/wrong_diagnostic_code.rs
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
28 changes: 28 additions & 0 deletions
28
tests/integrations/basic-fail/tests/actual_tests_bless/wrong_diagnostic_code.stderr
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
error: unreachable expression | ||
--> $DIR/wrong_diagnostic_code.rs:6:5 | ||
| | ||
5 | panic!(); | ||
| -------- any code following this expression is unreachable | ||
6 | 0 | ||
| ^ unreachable expression | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/wrong_diagnostic_code.rs:1:20 | ||
| | ||
1 | #![deny(dead_code, unreachable_code)] | ||
| ^^^^^^^^^^^^^^^^ | ||
|
||
error: function `foo` is never used | ||
--> $DIR/wrong_diagnostic_code.rs:3:4 | ||
| | ||
3 | fn foo() -> i32 { | ||
| ^^^ | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/wrong_diagnostic_code.rs:1:9 | ||
| | ||
1 | #![deny(dead_code, unreachable_code)] | ||
| ^^^^^^^^^ | ||
|
||
error: aborting due to 2 previous errors | ||
|