-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from jerusdp:gortavoher/edition-dependencies
Gortavoher/edition-dependencies
- Loading branch information
Showing
12 changed files
with
70 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
[workspace] | ||
members = ["dynomite", "dynomite-derive"] | ||
members = ["dynomite", "dynomite-derive"] | ||
resolver = "2" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
error: #[derive(Attributes)] for fat enums must have a sibling #[dynomite(tag = "key")] attribute to specify the descriptor field name. | ||
|
||
= note: Only internally tagged enums are supported in this version of dynomite. | ||
= note: Only internally tagged enums are supported in this version of dynomite. | ||
|
||
--> $DIR/fat-enum-without-tag.rs:4:10 | ||
--> trybuild-tests/fail/fat-enum-without-tag.rs:4:10 | ||
| | ||
4 | pub enum MyEnum { | ||
| ^^^^^^ |
2 changes: 1 addition & 1 deletion
2
dynomite/trybuild-tests/fail/incorrect-fn-path-in-skip-serializing-if.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use dynomite::{Attributes}; | ||
use dynomite::Attributes; | ||
|
||
#[derive(Attributes)] | ||
struct Test1 { | ||
|
50 changes: 28 additions & 22 deletions
50
dynomite/trybuild-tests/fail/incorrect-fn-path-in-skip-serializing-if.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
14 changes: 9 additions & 5 deletions
14
dynomite/trybuild-tests/fail/item-not-on-struct-fail.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,9 @@ | ||
error[E0774]: `derive` may only be applied to structs, enums and unions | ||
--> $DIR/item-not-on-struct-fail.rs:7:1 | ||
| | ||
7 | #[derive(dynomite_derive::Item)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s | ||
--> trybuild-tests/fail/item-not-on-struct-fail.rs:7:1 | ||
| | ||
7 | #[derive(dynomite_derive::Item)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not applicable here | ||
8 | / fn fail() { | ||
9 | | println!("This should fail"); | ||
10 | | } | ||
| |_- not a `struct`, `enum` or `union` |
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,8 @@ | ||
error: Duplicate tag name detected: `Bar` | ||
|
||
= help: Please ensure that no `rename = "tag_value"` clauses conflict with each other and remaining enum variants' names | ||
= help: Please ensure that no `rename = "tag_value"` clauses conflict with each other and remaining enum variants' names | ||
|
||
--> $DIR/non-unique-fat-enum-tags.rs:8:5 | ||
--> trybuild-tests/fail/non-unique-fat-enum-tags.rs:8:5 | ||
| | ||
8 | Baz(Bar), | ||
| ^^^ |