about summary refs log tree commit diff
path: root/library/std/src/sys/unix/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-04-13 13:42:19 +0000
committerbors <bors@rust-lang.org>2022-04-13 13:42:19 +0000
commitab33f71a8be01a93d4d14ee5755beeefe38f1946 (patch)
treedfdebd6758fae0af3c1ae1a76864d82b6e9bae67 /library/std/src/sys/unix/mod.rs
parentf38c5c8e5d76ea9a87fece143425ef7c703c706a (diff)
parentd4e44a63910c0e2d06c54534538b4a6e41348556 (diff)
downloadrust-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.rs1
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)) }
 }