diff options
| author | bors <bors@rust-lang.org> | 2022-04-13 13:42:19 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-04-13 13:42:19 +0000 |
| commit | ab33f71a8be01a93d4d14ee5755beeefe38f1946 (patch) | |
| tree | dfdebd6758fae0af3c1ae1a76864d82b6e9bae67 /library/std/src/sys/unix/mod.rs | |
| parent | f38c5c8e5d76ea9a87fece143425ef7c703c706a (diff) | |
| parent | d4e44a63910c0e2d06c54534538b4a6e41348556 (diff) | |
| download | rust-ab33f71a8be01a93d4d14ee5755beeefe38f1946.tar.gz rust-ab33f71a8be01a93d4d14ee5755beeefe38f1946.zip | |
Auto merge of #95727 - m-ou-se:futex-reentrantmutex, r=Amanieu
Replace ReentrantMutex by a futex-based one on Linux. Tracking issue: https://github.com/rust-lang/rust/issues/93740 r? `@Amanieu`
Diffstat (limited to 'library/std/src/sys/unix/mod.rs')
| -rw-r--r-- | library/std/src/sys/unix/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/unix/mod.rs b/library/std/src/sys/unix/mod.rs index e65c11b6d09..3ad03a88681 100644 --- a/library/std/src/sys/unix/mod.rs +++ b/library/std/src/sys/unix/mod.rs @@ -215,6 +215,7 @@ where } } +#[allow(dead_code)] // Not used on all platforms. pub fn cvt_nz(error: libc::c_int) -> crate::io::Result<()> { if error == 0 { Ok(()) } else { Err(crate::io::Error::from_raw_os_error(error)) } } |
