Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apparently the cron stopped running when we renamed `master` -> `main`, so we missed that these started failing - oops!
- Loading branch information
1 parent
83dab7d
commit 9a7fa3a
Showing
5 changed files
with
35 additions
and
2 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
7 changes: 7 additions & 0 deletions
7
num_enum/tests/try_build/compile_fail/exhaustive_enum.stderr_nightly
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,7 @@ | ||
error: #[derive(FromPrimitive)] requires a variant marked with `#[num_enum(default)]` | ||
--> $DIR/exhaustive_enum.rs:1:10 | ||
| | ||
1 | #[derive(num_enum::FromPrimitive)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: this error originates in the derive macro `num_enum::FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) |
7 changes: 7 additions & 0 deletions
7
num_enum/tests/try_build/compile_fail/missing_default.stderr_nightly
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,7 @@ | ||
error: #[derive(FromPrimitive)] requires a variant marked with `#[num_enum(default)]` | ||
--> $DIR/missing_default.rs:1:10 | ||
| | ||
1 | #[derive(num_enum::FromPrimitive)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: this error originates in the derive macro `num_enum::FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) |
7 changes: 7 additions & 0 deletions
7
num_enum/tests/try_build/compile_fail/missing_repr.stderr_nightly
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,7 @@ | ||
error: Missing `#[repr({Integer})]` attribute | ||
--> $DIR/missing_repr.rs:1:10 | ||
| | ||
1 | #[derive(num_enum::IntoPrimitive)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: this error originates in the derive macro `num_enum::IntoPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) |
12 changes: 12 additions & 0 deletions
12
num_enum/tests/try_build/compile_fail/unreachable_patterns.stderr_nightly
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,12 @@ | ||
error: unreachable pattern | ||
--> $DIR/unreachable_patterns.rs:7:5 | ||
| | ||
7 | Two = 2, | ||
| ^^^ | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/unreachable_patterns.rs:1:10 | ||
| | ||
1 | #[derive(num_enum::TryFromPrimitive)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
= note: this error originates in the derive macro `num_enum::TryFromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) |