Skip to content

Commit 7de5fe7

Browse files
authored
Rollup merge of #77719 - fusion-engineering-forks:const-new-mutex-attr-cleanup, r=Mark-Simulacrum
Remove unnecessary rustc_const_stable attributes. These attributes were added in #74033 (comment) because of [std::io::lazy::Lazy::new](https://github.com/rust-lang/rust/blob/0c03aee8b81185d65b5821518661c30ecdb42de5/src/libstd/io/lazy.rs#L21-L23). But [std::io::lazy::Lazy is gone now](#77154), so this can be cleaned up. @rustbot modify labels: +T-libs +C-cleanup
2 parents 6a59621 + e55d27f commit 7de5fe7

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

library/std/src/sys/unsupported/mutex.rs

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ unsafe impl Send for Mutex {}
1010
unsafe impl Sync for Mutex {} // no threads on this platform
1111

1212
impl Mutex {
13-
#[rustc_const_stable(feature = "const_sys_mutex_new", since = "1.0.0")]
1413
pub const fn new() -> Mutex {
1514
Mutex { locked: UnsafeCell::new(false) }
1615
}

library/std/src/sys_common/mutex.rs

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ impl StaticMutex {
2121
/// first used with any of the functions below.
2222
/// Also, the behavior is undefined if this mutex is ever used reentrantly,
2323
/// i.e., `lock` is called by the thread currently holding the lock.
24-
#[rustc_const_stable(feature = "const_sys_mutex_new", since = "1.0.0")]
2524
pub const fn new() -> Self {
2625
Self(imp::Mutex::new())
2726
}

0 commit comments

Comments
 (0)