diff options
| author | Sean Cross <sean@xobs.io> | 2024-10-29 22:39:48 +0800 |
|---|---|---|
| committer | Sean Cross <sean@xobs.io> | 2024-10-29 22:43:46 +0800 |
| commit | 59944c9c9f975f874565a1817d1ea005480a5e67 (patch) | |
| tree | 5acc5a758240eff1e0e1dfb67dd84e05f38bc28a /library/std/src/sys/sync | |
| parent | c8a8c82035439cb2404b8f24ca0bc18209d534ca (diff) | |
| download | rust-59944c9c9f975f874565a1817d1ea005480a5e67.tar.gz rust-59944c9c9f975f874565a1817d1ea005480a5e67.zip | |
xous: sync: remove `rustc_const_stable` attribute
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. Signed-off-by: Sean Cross <sean@xobs.io>
Diffstat (limited to 'library/std/src/sys/sync')
| -rw-r--r-- | library/std/src/sys/sync/condvar/xous.rs | 1 | ||||
| -rw-r--r-- | library/std/src/sys/sync/mutex/xous.rs | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/library/std/src/sys/sync/condvar/xous.rs b/library/std/src/sys/sync/condvar/xous.rs index cb55a3e3369..b9e5f47abfc 100644 --- a/library/std/src/sys/sync/condvar/xous.rs +++ b/library/std/src/sys/sync/condvar/xous.rs @@ -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) } } diff --git a/library/std/src/sys/sync/mutex/xous.rs b/library/std/src/sys/sync/mutex/xous.rs index 233e638f913..c6b954c1711 100644 --- a/library/std/src/sys/sync/mutex/xous.rs +++ b/library/std/src/sys/sync/mutex/xous.rs @@ -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) } } |
