mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-11-05 00:51:06 +00:00
Merge pull request #2406 from dtolnay/nestedmeta
Rewrite attribute parser using parse_nested_meta
This commit is contained in:
5 files changed
+477
-595
No files matched your search
+471
-589
File diff suppressed because it is too large.
Load diff
@@ -1,5 +1,5 @@
|
|||||||
error: expected `,`
|
error: expected `=`
|
||||||
--> tests/ui/malformed/trailing_expr.rs:5:35
|
--> tests/ui/malformed/trailing_expr.rs:5:32
|
||||||
|
|
|
|
||||||
5 | #[serde(skip_serializing_if, x.is_empty())]
|
5 | #[serde(skip_serializing_if, x.is_empty())]
|
||||||
| ^
|
| ^
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
error: expected path
|
error: unexpected literal in nested attribute, expected ident
|
||||||
--> tests/ui/unexpected-literal/container.rs:4:9
|
--> tests/ui/unexpected-literal/container.rs:4:9
|
||||||
|
|
|
|
||||||
4 | #[serde("literal")]
|
4 | #[serde("literal")]
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
error: expected path
|
error: unexpected literal in nested attribute, expected ident
|
||||||
--> tests/ui/unexpected-literal/field.rs:5:13
|
--> tests/ui/unexpected-literal/field.rs:5:13
|
||||||
|
|
|
|
||||||
5 | #[serde("literal")]
|
5 | #[serde("literal")]
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
error: expected path
|
error: unexpected literal in nested attribute, expected ident
|
||||||
--> tests/ui/unexpected-literal/variant.rs:5:13
|
--> tests/ui/unexpected-literal/variant.rs:5:13
|
||||||
|
|
|
|
||||||
5 | #[serde("literal")]
|
5 | #[serde("literal")]
|
||||||
|
|||||||
Reference in new issue
Block a user