-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
7 changed files
with
47 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,8 @@ | ||
error[E0004]: non-exhaustive patterns: `Some(_)` not covered | ||
--> $DIR/check.rs:17:11 | ||
| | ||
LL | match None::<Void> { | ||
| ^^^^^^^^^^^^ pattern `Some(_)` not covered | ||
| | ||
note: `Option<Void>` defined here | ||
--> $SRC_DIR/core/src/option.rs:LL:COL | ||
::: $SRC_DIR/core/src/option.rs:LL:COL | ||
| | ||
= note: not covered | ||
= note: the matched value is of type `Option<Void>` | ||
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown | ||
| | ||
LL ~ None => {}, | ||
LL + Some(_) => todo!() | ||
| | ||
|
||
error[E0004]: non-exhaustive patterns: `Some(_)` not covered | ||
--> $DIR/check.rs:22:11 | ||
| | ||
LL | match None::<Void> { | ||
| ^^^^^^^^^^^^ pattern `Some(_)` not covered | ||
| | ||
note: `Option<Void>` defined here | ||
--> $SRC_DIR/core/src/option.rs:LL:COL | ||
::: $SRC_DIR/core/src/option.rs:LL:COL | ||
| | ||
= note: not covered | ||
= note: the matched value is of type `Option<Void>` | ||
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown | ||
| | ||
LL ~ None => {}, | ||
LL + Some(_) => todo!() | ||
error: a guard on a never pattern will never be run | ||
--> $DIR/check.rs:18:20 | ||
| | ||
LL | Some(!) if true, | ||
| ^^^^ help: remove this guard | ||
|
||
error: aborting due to 2 previous errors | ||
error: aborting due to 1 previous error | ||
|
||
For more information about this error, try `rustc --explain E0004`. |
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