You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by gi...@apache.org on 2026/09/08 13:03:36 UTC
(datafusion-sqlparser-rs) 01/01: Update sqlparser_derive to syn 3.0 (#2483)
This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/main/pr-2483-16cd393479caba03ed8752dc0c3dd0f394394d74
in repository https://gitbox.apache.org/repos/asf/datafusion-sqlparser-rs.git
commit dc8f0c4fe539e4d5504d88761097ee697d10c21a
Author: Andrew Lamb <an...@nerdnetworks.org>
AuthorDate: Tue Sep 8 13:03:11 2026 +0000
Update sqlparser_derive to syn 3.0 (#2483)
---
derive/Cargo.toml | 2 +-
derive/src/dialect.rs | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/derive/Cargo.toml b/derive/Cargo.toml
index ac3d4058..9d6a096c 100644
--- a/derive/Cargo.toml
+++ b/derive/Cargo.toml
@@ -39,6 +39,6 @@ proc-macro = true
unsafe_code = "forbid"
[dependencies]
-syn = { version = "2.0", default-features = false, features = ["full", "printing", "parsing", "derive", "proc-macro", "clone-impls"] }
+syn = { version = "3.0", default-features = false, features = ["full", "printing", "parsing", "derive", "proc-macro", "clone-impls"] }
proc-macro2 = "1.0"
quote = "1.0"
diff --git a/derive/src/dialect.rs b/derive/src/dialect.rs
index 9066bf96..be19e370 100644
--- a/derive/src/dialect.rs
+++ b/derive/src/dialect.rs
@@ -23,8 +23,8 @@ use std::collections::HashSet;
use syn::{
braced,
parse::{Parse, ParseStream},
- Error, File, FnArg, Ident, Item, LitBool, LitChar, Pat, ReturnType, Signature, Token,
- TraitItem, Type,
+ Error, File, FnArg, Ident, Item, LitBool, LitChar, Pat, ReceiverKind, ReturnType, Signature,
+ Token, TraitItem, Type,
};
/// Override value types supported by the macro
@@ -343,7 +343,7 @@ fn is_bool_method(sig: &Signature) -> bool {
sig.inputs.len() == 1
&& matches!(
sig.inputs.first(),
- Some(FnArg::Receiver(r)) if r.reference.is_some() && r.mutability.is_none()
+ Some(FnArg::Receiver(r)) if matches!(&r.kind, ReceiverKind::Reference(_, _, None))
)
&& matches!(
&sig.output,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org