Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lint for redundant branches in or-patterns
- Loading branch information
Showing
4 changed files
with
87 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,44 @@ | ||
error: unreachable pattern | ||
--> $DIR/exhaustiveness-pass.rs:48:12 | ||
| | ||
LL | | 1,) => {} | ||
| ^ | ||
| | ||
note: lint level defined here | ||
--> $DIR/exhaustiveness-pass.rs:4:9 | ||
| | ||
LL | #![deny(unreachable_patterns)] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: unreachable pattern | ||
--> $DIR/exhaustiveness-pass.rs:55:15 | ||
| | ||
LL | | 0] => {} | ||
| ^ | ||
|
||
error: unreachable pattern | ||
--> $DIR/exhaustiveness-pass.rs:53:15 | ||
| | ||
LL | | 0 | ||
| ^ | ||
|
||
error: unreachable pattern | ||
--> $DIR/exhaustiveness-pass.rs:63:10 | ||
| | ||
LL | [1 | ||
| ^ | ||
|
||
error: unreachable pattern | ||
--> $DIR/exhaustiveness-pass.rs:69:14 | ||
| | ||
LL | Some(0 | ||
| ^ | ||
|
||
error: or-patterns are not fully implemented yet | ||
--> $DIR/exhaustiveness-pass.rs:10:10 | ||
| | ||
LL | (0 | _,) => {} | ||
| ^^^^^ | ||
|
||
error: aborting due to previous error | ||
error: aborting due to 6 previous errors | ||
|