From 0e6830c95311102d59da5be71ed387598f8b2bfd Mon Sep 17 00:00:00 2001 From: Chris Wong Date: Sat, 4 Apr 2026 13:40:23 +1100 Subject: [PATCH 1/3] Silence Clippy incompatible_msrv This is due to rust-lang/libc#5015. --- src/unix.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/unix.rs b/src/unix.rs index 5536eef..7efe81b 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -100,5 +100,12 @@ extern "C" { )] #[cfg_attr(target_os = "aix", link_name = "_Errno")] #[cfg_attr(target_os = "nto", link_name = "__get_errno_ptr")] + + // Newer libc versions re-export `c_int` from `std` which is incompatible + // with Rust < 1.65. However, this is not actually a problem as users can + // use an older `libc`. + // See: https://github.com/rust-lang/libc/pull/5015 + #[allow(clippy::incompatible_msrv)] + fn errno_location() -> *mut c_int; } From 5f89e65236eb25bf84291c20ab9cac28a3382167 Mon Sep 17 00:00:00 2001 From: Chris Wong Date: Sat, 4 Apr 2026 13:46:20 +1100 Subject: [PATCH 2/3] Use `clippy::msrv` instead --- src/unix.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unix.rs b/src/unix.rs index 7efe81b..343e959 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -102,10 +102,10 @@ extern "C" { #[cfg_attr(target_os = "nto", link_name = "__get_errno_ptr")] // Newer libc versions re-export `c_int` from `std` which is incompatible - // with Rust < 1.65. However, this is not actually a problem as users can + // with Rust < 1.64. However, this is not actually a problem as users can // use an older `libc`. // See: https://github.com/rust-lang/libc/pull/5015 - #[allow(clippy::incompatible_msrv)] + #[clippy::msrv = "1.64"] fn errno_location() -> *mut c_int; } From a6242a1ed1d7819fe81967296a781e373379d43d Mon Sep 17 00:00:00 2001 From: Chris Wong Date: Sat, 4 Apr 2026 13:48:35 +1100 Subject: [PATCH 3/3] Formatting --- src/unix.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/unix.rs b/src/unix.rs index 343e959..6e93de0 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -100,12 +100,10 @@ extern "C" { )] #[cfg_attr(target_os = "aix", link_name = "_Errno")] #[cfg_attr(target_os = "nto", link_name = "__get_errno_ptr")] - // Newer libc versions re-export `c_int` from `std` which is incompatible // with Rust < 1.64. However, this is not actually a problem as users can // use an older `libc`. // See: https://github.com/rust-lang/libc/pull/5015 #[clippy::msrv = "1.64"] - fn errno_location() -> *mut c_int; }