You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The release notes for syn 2 say that AttributeArgs was removed, and says to use Punctuated<Meta, Token![,]> instead. But while parse_macro_input!(foo as AttributeArgs) worked with syn 1, the equivalent (with Punctuated<Meta, Token![,]>) doesn't work with syn 2 because ParseMacroInput is gone, and Punctuated doesn't implement Parse. How does one do the equivalent of parse_macro_input!(foo as AttributeArgs) with syn 2?
The text was updated successfully, but these errors were encountered:
glandium
changed the title
Can't parse_macro_input what used to be AttributeArgs
Can't parse_macro_input with what used to be AttributeArgs
May 30, 2023
The release notes for syn 2 say that
AttributeArgs
was removed, and says to usePunctuated<Meta, Token![,]>
instead. But whileparse_macro_input!(foo as AttributeArgs)
worked with syn 1, the equivalent (withPunctuated<Meta, Token![,]>
) doesn't work with syn 2 because ParseMacroInput is gone, and Punctuated doesn't implement Parse. How does one do the equivalent ofparse_macro_input!(foo as AttributeArgs)
with syn 2?The text was updated successfully, but these errors were encountered: