Rewrite attribute parser using parse_nested_meta

This commit is contained in:
David Tolnay
2023-03-16 00:11:35 -07:00
parent 05098105a8
commit bc22641359
5 changed files with 477 additions and 595 deletions
@@ -1,4 +1,4 @@
error: expected path
error: unexpected literal in nested attribute, expected ident
--> tests/ui/unexpected-literal/container.rs:4:9
|
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
|
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
|
5 | #[serde("literal")]