Skip to content

Commit 5ee37f5

Browse files
authored
Disable the futex deprecation for now. (#1138)
There are significant numbers of users using `futex`, so don't deprecate the old API for now.
1 parent e8bcc80 commit 5ee37f5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/backend/libc/thread/futex.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,16 @@ pub(crate) enum Operation {
5151
/// `FUTEX_*` operations for use with the [`futex`] function.
5252
///
5353
/// [`futex`]: fn@crate::thread::futex
54+
// TODO: Deprecate this now that we have a new typed API.
55+
/*
5456
#[deprecated(
5557
since = "0.38.35",
5658
note = "
5759
The `futex` function and `FutexOperation` enum are deprecated. There are
5860
individual functions available to perform futex operations with improved
5961
type safety. See the `rustix::thread::futex` module."
6062
)]
63+
*/
6164
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
6265
#[repr(u32)]
6366
pub enum FutexOperation {

src/backend/linux_raw/thread/futex.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,16 @@ pub(crate) enum Operation {
5353
/// `FUTEX_*` operations for use with the [`futex`] function.
5454
///
5555
/// [`futex`]: fn@crate::thread::futex
56+
// TODO: Deprecate this now that we have a new typed API.
57+
/*
5658
#[deprecated(
5759
since = "0.38.35",
5860
note = "
5961
The `futex` function and `FutexOperation` enum are deprecated. There are
6062
individual functions available to perform futex operations with improved
6163
type safety. See the `rustix::thread::futex` module."
6264
)]
65+
*/
6366
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
6467
#[repr(u32)]
6568
pub enum FutexOperation {

0 commit comments

Comments
 (0)