aboutsummaryrefslogtreecommitdiff
path: root/patches/syn-2.diff
diff options
context:
space:
mode:
Diffstat (limited to 'patches/syn-2.diff')
-rw-r--r--patches/syn-2.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/patches/syn-2.diff b/patches/syn-2.diff
new file mode 100644
index 0000000..f552d50
--- /dev/null
+++ b/patches/syn-2.diff
@@ -0,0 +1,14 @@
+diff --git a/src/lib.rs b/src/lib.rs
+index d0be8b4..4b9981e 100644
+--- a/src/lib.rs
++++ b/src/lib.rs
+@@ -239,8 +239,7 @@ fn expand_no_panic(mut function: ItemFn) -> TokenStream2 {
+ let has_inline = function
+ .attrs
+ .iter()
+- .flat_map(Attribute::parse_meta)
+- .any(|meta| meta.path().is_ident("inline"));
++ .any(|attr| attr.meta.path().is_ident("inline"));
+ if !has_inline {
+ function.attrs.push(parse_quote!(#[inline]));
+ }