We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6a59621 + e55d27f commit 7de5fe7Copy full SHA for 7de5fe7
library/std/src/sys/unsupported/mutex.rs
@@ -10,7 +10,6 @@ unsafe impl Send for Mutex {}
10
unsafe impl Sync for Mutex {} // no threads on this platform
11
12
impl Mutex {
13
- #[rustc_const_stable(feature = "const_sys_mutex_new", since = "1.0.0")]
14
pub const fn new() -> Mutex {
15
Mutex { locked: UnsafeCell::new(false) }
16
}
library/std/src/sys_common/mutex.rs
@@ -21,7 +21,6 @@ impl StaticMutex {
21
/// first used with any of the functions below.
22
/// Also, the behavior is undefined if this mutex is ever used reentrantly,
23
/// i.e., `lock` is called by the thread currently holding the lock.
24
25
pub const fn new() -> Self {
26
Self(imp::Mutex::new())
27
0 commit comments