Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update existing tests with more precise error messages
- Loading branch information
Showing
19 changed files
with
102 additions
and
76 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
src/test/run-pass/array-slice-vec/vec-matching-autoslice.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,8 @@ | ||
warning: unreachable pattern | ||
--> $DIR/vec-matching-autoslice.rs:31:9 | ||
| | ||
LL | ([_, _], _) => panic!(), | ||
| ^^^^^^^^^^^ | ||
| | ||
= note: #[warn(unreachable_patterns)] on by default | ||
|
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,20 @@ | ||
warning: unreachable pattern | ||
--> $DIR/match-range.rs:47:7 | ||
| | ||
LL | _ => panic!("should match float range") | ||
| ^ | ||
| | ||
= note: #[warn(unreachable_patterns)] on by default | ||
|
||
warning: unreachable pattern | ||
--> $DIR/match-range.rs:55:9 | ||
| | ||
LL | _ => {}, | ||
| ^ | ||
|
||
warning: unreachable pattern | ||
--> $DIR/match-range.rs:59:9 | ||
| | ||
LL | _ => panic!("should match the range start"), | ||
| ^ | ||
|
8 changes: 8 additions & 0 deletions
8
src/test/run-pass/issues/issue-15881-model-lexer-dotdotdot.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,8 @@ | ||
warning: unreachable pattern | ||
--> $DIR/issue-15881-model-lexer-dotdotdot.rs:41:7 | ||
| | ||
LL | _ => panic!("should match float range") | ||
| ^ | ||
| | ||
= note: #[warn(unreachable_patterns)] on by default | ||
|
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,8 @@ | ||
warning: unreachable pattern | ||
--> $DIR/issue-7222.rs:20:9 | ||
| | ||
LL | _ => () | ||
| ^ | ||
| | ||
= note: #[warn(unreachable_patterns)] on by default | ||
|
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
src/test/ui/for/for-loop-refutable-pattern-error-message.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
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