changeset 120:0f913ec120ac default tip

Set rust-toolchain.toml; include span when parsing proc macro root.
author Paul Fisher <paul@pfish.zone>
date Mon, 30 Jun 2025 01:41:48 -0400
parents 476a22db8639
children
files libpam-sys/libpam-sys-impls/src/lib.rs rust-toolchain.toml
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpam-sys/libpam-sys-impls/src/lib.rs	Mon Jun 30 01:40:28 2025 -0400
+++ b/libpam-sys/libpam-sys-impls/src/lib.rs	Mon Jun 30 01:41:48 2025 -0400
@@ -8,7 +8,7 @@
 // For documentation on this, see the `libpam-sys` crate.
 #[proc_macro_attribute]
 pub fn cfg_pam_impl(attr: pm::TokenStream, item: pm::TokenStream) -> pm::TokenStream {
-    Predicate::parse(attr.into(), None)
+    Predicate::parse(attr.into(), Some(Span::call_site()))
         .map(|p| {
             if p.matches(pam_impl_str()) {
                 item
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rust-toolchain.toml	Mon Jun 30 01:41:48 2025 -0400
@@ -0,0 +1,2 @@
+[toolchain]
+channel = "1.75.0"
\ No newline at end of file