Remove unnecessary rustc_const_stable attributes.
This commit is contained in:
parent
ccea570488
commit
e55d27fbce
|
@ -10,7 +10,6 @@ unsafe impl Send for Mutex {}
|
||||||
unsafe impl Sync for Mutex {} // no threads on this platform
|
unsafe impl Sync for Mutex {} // no threads on this platform
|
||||||
|
|
||||||
impl Mutex {
|
impl Mutex {
|
||||||
#[rustc_const_stable(feature = "const_sys_mutex_new", since = "1.0.0")]
|
|
||||||
pub const fn new() -> Mutex {
|
pub const fn new() -> Mutex {
|
||||||
Mutex { locked: UnsafeCell::new(false) }
|
Mutex { locked: UnsafeCell::new(false) }
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,6 @@ impl StaticMutex {
|
||||||
/// first used with any of the functions below.
|
/// first used with any of the functions below.
|
||||||
/// Also, the behavior is undefined if this mutex is ever used reentrantly,
|
/// Also, the behavior is undefined if this mutex is ever used reentrantly,
|
||||||
/// i.e., `lock` is called by the thread currently holding the lock.
|
/// 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 {
|
pub const fn new() -> Self {
|
||||||
Self(imp::Mutex::new())
|
Self(imp::Mutex::new())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue