-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move arbitrary_enum_discriminant tests to stable
The feature stabilised in 1.66.0.
- Loading branch information
1 parent
bc957b1
commit 866c4b6
Showing
30 changed files
with
37 additions
and
67 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
2 changes: 0 additions & 2 deletions
2
...compile_fail/catch_all_multiple_fields.rs → ...compile_fail/catch_all_multiple_fields.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
4 changes: 2 additions & 2 deletions
4
...ile_fail/catch_all_multiple_fields.stderr → ...ile_fail/catch_all_multiple_fields.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
error: Variant with `catch_all` must be a tuple with exactly 1 field matching the repr type | ||
--> tests/try_build/nightly/compile_fail/catch_all_multiple_fields.rs:7:16 | ||
--> tests/try_build/compile_fail/catch_all_multiple_fields.rs:5:16 | ||
| | ||
7 | #[num_enum(catch_all)] | ||
5 | #[num_enum(catch_all)] | ||
| ^^^^^^^^^ |
2 changes: 0 additions & 2 deletions
2
...ghtly/compile_fail/catch_all_non_tuple.rs → ...build/compile_fail/catch_all_non_tuple.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
4 changes: 2 additions & 2 deletions
4
...y/compile_fail/catch_all_non_tuple.stderr → ...d/compile_fail/catch_all_non_tuple.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
error: Variant with `catch_all` must be a tuple with exactly 1 field matching the repr type | ||
--> tests/try_build/nightly/compile_fail/catch_all_non_tuple.rs:7:16 | ||
--> tests/try_build/compile_fail/catch_all_non_tuple.rs:5:16 | ||
| | ||
7 | #[num_enum(catch_all)] | ||
5 | #[num_enum(catch_all)] | ||
| ^^^^^^^^^ |
2 changes: 0 additions & 2 deletions
2
...y/compile_fail/catch_all_type_mismatch.rs → ...d/compile_fail/catch_all_type_mismatch.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
4 changes: 2 additions & 2 deletions
4
...mpile_fail/catch_all_type_mismatch.stderr → ...mpile_fail/catch_all_type_mismatch.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
error: Variant with `catch_all` must be a tuple with exactly 1 field matching the repr type | ||
--> tests/try_build/nightly/compile_fail/catch_all_type_mismatch.rs:7:16 | ||
--> tests/try_build/compile_fail/catch_all_type_mismatch.rs:5:16 | ||
| | ||
7 | #[num_enum(catch_all)] | ||
5 | #[num_enum(catch_all)] | ||
| ^^^^^^^^^ |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...y/compile_fail/conflicting_default.stderr → ...d/compile_fail/conflicting_default.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
2 changes: 0 additions & 2 deletions
2
...tly/compile_fail/default_and_catch_all.rs → ...ild/compile_fail/default_and_catch_all.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
5 changes: 5 additions & 0 deletions
5
num_enum/tests/try_build/compile_fail/default_and_catch_all.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,5 @@ | ||
error: Attribute `catch_all` is mutually exclusive with `default` | ||
--> tests/try_build/compile_fail/default_and_catch_all.rs:6:16 | ||
| | ||
6 | #[num_enum(catch_all)] | ||
| ^^^^^^^^^ |
2 changes: 0 additions & 2 deletions
2
...compile_fail/default_and_catch_all_alt.rs → ...compile_fail/default_and_catch_all_alt.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
5 changes: 5 additions & 0 deletions
5
num_enum/tests/try_build/compile_fail/default_and_catch_all_alt.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,5 @@ | ||
error: Attribute `catch_all` is mutually exclusive with `default` | ||
--> tests/try_build/compile_fail/default_and_catch_all_alt.rs:6:16 | ||
| | ||
6 | #[num_enum(catch_all)] | ||
| ^^^^^^^^^ |
2 changes: 0 additions & 2 deletions
2
...ail/default_and_catch_all_same_variant.rs → ...ail/default_and_catch_all_same_variant.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
5 changes: 5 additions & 0 deletions
5
num_enum/tests/try_build/compile_fail/default_and_catch_all_same_variant.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,5 @@ | ||
error: Attribute `default` is mutually exclusive with `catch_all` | ||
--> tests/try_build/compile_fail/default_and_catch_all_same_variant.rs:6:5 | ||
| | ||
6 | #[default] | ||
| ^^^^^^^^^^ |
2 changes: 0 additions & 2 deletions
2
...default_and_catch_all_same_variant_alt.rs → ...default_and_catch_all_same_variant_alt.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
5 changes: 5 additions & 0 deletions
5
num_enum/tests/try_build/compile_fail/default_and_catch_all_same_variant_alt.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,5 @@ | ||
error: Attribute `default` is mutually exclusive with `catch_all` | ||
--> tests/try_build/compile_fail/default_and_catch_all_same_variant_alt.rs:6:16 | ||
| | ||
6 | #[num_enum(default)] | ||
| ^^^^^^^ |
2 changes: 0 additions & 2 deletions
2
...ightly/compile_fail/multiple_catch_all.rs → ..._build/compile_fail/multiple_catch_all.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
5 changes: 5 additions & 0 deletions
5
num_enum/tests/try_build/compile_fail/multiple_catch_all.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,5 @@ | ||
error: Multiple variants marked with `#[num_enum(catch_all)]` | ||
--> tests/try_build/compile_fail/multiple_catch_all.rs:6:16 | ||
| | ||
6 | #[num_enum(catch_all)] | ||
| ^^^^^^^^^ |
2 changes: 0 additions & 2 deletions
2
...e_fail/multiple_catch_all_same_variant.rs → ...e_fail/multiple_catch_all_same_variant.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
5 changes: 5 additions & 0 deletions
5
num_enum/tests/try_build/compile_fail/multiple_catch_all_same_variant.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,5 @@ | ||
error: Multiple variants marked with `#[num_enum(catch_all)]` | ||
--> tests/try_build/compile_fail/multiple_catch_all_same_variant.rs:6:16 | ||
| | ||
6 | #[num_enum(catch_all)] | ||
| ^^^^^^^^^ |
5 changes: 0 additions & 5 deletions
5
num_enum/tests/try_build/nightly/compile_fail/default_and_catch_all.stderr
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
num_enum/tests/try_build/nightly/compile_fail/default_and_catch_all_alt.stderr
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
num_enum/tests/try_build/nightly/compile_fail/default_and_catch_all_same_variant.stderr
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
num_enum/tests/try_build/nightly/compile_fail/default_and_catch_all_same_variant_alt.stderr
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
num_enum/tests/try_build/nightly/compile_fail/multiple_catch_all.stderr
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
num_enum/tests/try_build/nightly/compile_fail/multiple_catch_all_same_variant.stderr
This file was deleted.
Oops, something went wrong.