Update syn crate from 1.0.109 to 2.0.101 (#31301)

Nearly all generated by Zed Agent + Claude Opus 4. I just wrote the test
`Args` struct and pointed it at the [2.0 release
notes](https://github.com/dtolnay/syn/releases/tag/2.0.0).

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2025-05-23 13:31:25 -06:00 committed by GitHub
parent 208f525a11
commit f3c2e71ca7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 155 additions and 90 deletions

View file

@ -183,7 +183,7 @@ pub(crate) fn get_simple_attribute_field(ast: &DeriveInput, name: &'static str)
syn::Data::Struct(data_struct) => data_struct
.fields
.iter()
.find(|field| field.attrs.iter().any(|attr| attr.path.is_ident(name)))
.find(|field| field.attrs.iter().any(|attr| attr.path().is_ident(name)))
.map(|field| field.ident.clone().unwrap()),
syn::Data::Enum(_) => None,
syn::Data::Union(_) => None,