Skip to content

Commit 0e6830c

Browse files
authored
Silence Clippy incompatible_msrv
This is due to rust-lang/libc#5015.
1 parent 62ef494 commit 0e6830c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/unix.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,12 @@ extern "C" {
100100
)]
101101
#[cfg_attr(target_os = "aix", link_name = "_Errno")]
102102
#[cfg_attr(target_os = "nto", link_name = "__get_errno_ptr")]
103+
104+
// Newer libc versions re-export `c_int` from `std` which is incompatible
105+
// with Rust < 1.65. However, this is not actually a problem as users can
106+
// use an older `libc`.
107+
// See: https://github.com/rust-lang/libc/pull/5015
108+
#[allow(clippy::incompatible_msrv)]
109+
103110
fn errno_location() -> *mut c_int;
104111
}

0 commit comments

Comments
 (0)