aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Maurer <mmaurer@google.com>2023-04-03 16:05:56 +0000
committerMatthew Maurer <mmaurer@google.com>2023-04-03 16:05:56 +0000
commit5dbe9b3628cc13b0c12edab32386d67d05d38d16 (patch)
tree30e337998d47031fce3797b487984b3ee406d68d
parentf319f4cfbbf14ad85a6834d3f6414e41d0abbf70 (diff)
downloadmerge_derive-5dbe9b3628cc13b0c12edab32386d67d05d38d16.tar.gz
Update to syn-2
Bug: 276463929 Test: m Change-Id: Ie9da7edd471f029d4d26f5b914c6b3c608ebc5fd
-rw-r--r--patches/syn-2.patch13
-rw-r--r--src/lib.rs2
2 files changed, 14 insertions, 1 deletions
diff --git a/patches/syn-2.patch b/patches/syn-2.patch
new file mode 100644
index 0000000..226c027
--- /dev/null
+++ b/patches/syn-2.patch
@@ -0,0 +1,13 @@
+diff --git a/src/lib.rs b/src/lib.rs
+index 75732f9..3727bf6 100644
+--- a/src/lib.rs
++++ b/src/lib.rs
+@@ -119,7 +119,7 @@ impl<'a, I: Iterator<Item = &'a syn::Attribute>> From<I> for FieldAttrs {
+ let mut field_attrs = Self::default();
+
+ for attr in iter {
+- if !attr.path.is_ident("merge") {
++ if !attr.path().is_ident("merge") {
+ continue;
+ }
+
diff --git a/src/lib.rs b/src/lib.rs
index 75732f9..3727bf6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -119,7 +119,7 @@ impl<'a, I: Iterator<Item = &'a syn::Attribute>> From<I> for FieldAttrs {
let mut field_attrs = Self::default();
for attr in iter {
- if !attr.path.is_ident("merge") {
+ if !attr.path().is_ident("merge") {
continue;
}