-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated to syn 2.0 #488
Updated to syn 2.0 #488
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
pub(crate) fn parse_enum_attributes(item_enum: &ItemEnum) -> EnumAttributes { | ||
let mut enum_attributes = EnumAttributes::default(); | ||
for attr in &item_enum.attrs { | ||
if attr.path().is_ident("cw_orch") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So in syn2 the namespacing of macros is refered to as the "ident"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes ! This is directly inspired from the official syn2 docs
…ve-to-2nd-version
This PR aims at updating syn to 2.0 and putting in common the attributes parsing for all attribute levels.
Common parsing for all attributes level is motivated by the following issue on syn 2.0 : dtolnay/syn#1426
Checklist