-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Update to syn 2 #1862
Update to syn 2 #1862
Conversation
@@ -23,6 +23,8 @@ skip-tree = [ | |||
{ name = "windows-sys" }, | |||
# old version pulled in by rustls via ring | |||
{ name = "spin" }, | |||
# lots still pulls in syn 1.x | |||
{ name = "syn" }, |
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.
I tried to remove duplicate syn versions but still lots of crates that need to be updated. I'm gonna submit some patches but don't it should block us from updating.
@@ -62,7 +62,7 @@ where | |||
{ | |||
attrs | |||
.iter() | |||
.filter(|attr| attr.path.is_ident(ident)) | |||
.filter(|attr| attr.meta.path().is_ident(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.
Having just upgraded another project to syn 2, I realized you used a more verbose solution than necessary here. Attribute
also has a path
method, so this can be attr.path()
.
🚀