From 8320d4402029d25b78f6ab4dca48e634f8a084bb Mon Sep 17 00:00:00 2001 From: teor Date: Fri, 31 Jul 2026 14:59:47 +1000 Subject: [PATCH 1/2] Rename splat attribute to rustc_splat --- Cargo.toml | 4 +++- splat-overload/src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 32d23ad..c627154 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,8 +24,10 @@ keywords = [ license = "MIT OR APACHE-2.0" readme = "README.md" repository = "https://github.com/rustfoundation/overloading-macros" -# Requires #[splat] which was introduced just before 1.99 branched +# Requires #[rustc_splat] which was renamed in nightly-2026-07-31 (rust-lang/rust#159817) +# FIXME: we can't specify nightly dates or the latest nightly here, update to 1.100 once 1.99 beta branches (20 August 2026) rust-version = "1.99" + [workspace.dependencies] syn = { version = "2.0.119", features = ["full"] } quote = "1.0.46" diff --git a/splat-overload/src/lib.rs b/splat-overload/src/lib.rs index 68e3a34..63db798 100644 --- a/splat-overload/src/lib.rs +++ b/splat-overload/src/lib.rs @@ -95,7 +95,7 @@ pub fn overload(input: TokenStream) -> TokenStream { #(#impls)* - fn #fn_name(#[splat] args: T) -> T::Output{ + fn #fn_name(#[rustc_splat] args: T) -> T::Output{ args.call() } }; From 6c69f1e1cfe881135c022192489f6dc80028c41e Mon Sep 17 00:00:00 2001 From: teor Date: Fri, 31 Jul 2026 15:00:19 +1000 Subject: [PATCH 2/2] Add Ajay to crate authors --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index c627154..6923d13 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,6 +12,7 @@ default-members = [ [workspace.package] version = "0.0.0" authors = [ + "Ajay Singh ", "teor