mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Rollup merge of #132321 - betrusted-io:xous/fix-rustc_const_stable-attribute, r=joboet
xous: sync: remove `rustc_const_stable` attribute on Condvar and Mutex new()
These functions had `#[rustc_const_stable(feature = "const_locks", since = "1.63.0")]` on them because they were originally taken from `no_threads`. with d066dfd
these no longer compile. Since other platforms do not have this attribute, remove it. This fixes the build for Xous.
This commit is contained in:
commit
07afe8d12f
@ -20,7 +20,6 @@ unsafe impl Sync for Condvar {}
|
||||
|
||||
impl Condvar {
|
||||
#[inline]
|
||||
#[rustc_const_stable(feature = "const_locks", since = "1.63.0")]
|
||||
pub const fn new() -> Condvar {
|
||||
Condvar { counter: AtomicUsize::new(0), timed_out: AtomicUsize::new(0) }
|
||||
}
|
||||
|
@ -24,7 +24,6 @@ pub struct Mutex {
|
||||
|
||||
impl Mutex {
|
||||
#[inline]
|
||||
#[rustc_const_stable(feature = "const_locks", since = "1.63.0")]
|
||||
pub const fn new() -> Mutex {
|
||||
Mutex { locked: AtomicUsize::new(0), contended: AtomicBool::new(false) }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user