File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
serde_derive/src/internals
test_suite/tests/regression Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -307,6 +307,12 @@ impl Container {
307
307
continue ;
308
308
}
309
309
310
+ if let syn:: Meta :: List ( meta) = & attr. meta {
311
+ if meta. tokens . is_empty ( ) {
312
+ continue ;
313
+ }
314
+ }
315
+
310
316
if let Err ( err) = attr. parse_nested_meta ( |meta| {
311
317
if meta. path == RENAME {
312
318
// #[serde(rename = "foo")]
@@ -762,6 +768,12 @@ impl Variant {
762
768
continue ;
763
769
}
764
770
771
+ if let syn:: Meta :: List ( meta) = & attr. meta {
772
+ if meta. tokens . is_empty ( ) {
773
+ continue ;
774
+ }
775
+ }
776
+
765
777
if let Err ( err) = attr. parse_nested_meta ( |meta| {
766
778
if meta. path == RENAME {
767
779
// #[serde(rename = "foo")]
@@ -1033,6 +1045,12 @@ impl Field {
1033
1045
continue ;
1034
1046
}
1035
1047
1048
+ if let syn:: Meta :: List ( meta) = & attr. meta {
1049
+ if meta. tokens . is_empty ( ) {
1050
+ continue ;
1051
+ }
1052
+ }
1053
+
1036
1054
if let Err ( err) = attr. parse_nested_meta ( |meta| {
1037
1055
if meta. path == RENAME {
1038
1056
// #[serde(rename = "foo")]
Original file line number Diff line number Diff line change
1
+ use serde_derive:: Serialize ;
2
+
3
+ #[ derive( Serialize ) ]
4
+ #[ serde( ) ]
5
+ pub struct S ;
You can’t perform that action at this time.
0 commit comments