diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-10-08 22:29:13 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2020-10-08 22:29:13 +0200 |
| commit | e55d27fbcefffbddb85f28cf4eb913674f2188c6 (patch) | |
| tree | 04e6cd6a641ebe65bc73efc368903e15265000df /library/std/src | |
| parent | ccea570488694e502c1a7ca8f3f0866c9b763ce4 (diff) | |
| download | rust-e55d27fbcefffbddb85f28cf4eb913674f2188c6.tar.gz rust-e55d27fbcefffbddb85f28cf4eb913674f2188c6.zip | |
Remove unnecessary rustc_const_stable attributes.
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/sys/unsupported/mutex.rs | 1 | ||||
| -rw-r--r-- | library/std/src/sys_common/mutex.rs | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/library/std/src/sys/unsupported/mutex.rs b/library/std/src/sys/unsupported/mutex.rs index 06ea9a1e2c1..ed4605f0595 100644 --- a/library/std/src/sys/unsupported/mutex.rs +++ b/library/std/src/sys/unsupported/mutex.rs @@ -10,7 +10,6 @@ unsafe impl Send for Mutex {} unsafe impl Sync for Mutex {} // no threads on this platform impl Mutex { - #[rustc_const_stable(feature = "const_sys_mutex_new", since = "1.0.0")] pub const fn new() -> Mutex { Mutex { locked: UnsafeCell::new(false) } } diff --git a/library/std/src/sys_common/mutex.rs b/library/std/src/sys_common/mutex.rs index a1e11d24465..91d919a3f9b 100644 --- a/library/std/src/sys_common/mutex.rs +++ b/library/std/src/sys_common/mutex.rs @@ -21,7 +21,6 @@ impl StaticMutex { /// first used with any of the functions below. /// Also, the behavior is undefined if this mutex is ever used reentrantly, /// i.e., `lock` is called by the thread currently holding the lock. - #[rustc_const_stable(feature = "const_sys_mutex_new", since = "1.0.0")] pub const fn new() -> Self { Self(imp::Mutex::new()) } |
