Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ed1a265

Browse files
committedOct 29, 2024
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>
1 parent e134006 commit ed1a265

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed
 

‎std/src/sys/sync/condvar/xous.rs

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ unsafe impl Sync for Condvar {}
2020

2121
impl Condvar {
2222
#[inline]
23-
#[rustc_const_stable(feature = "const_locks", since = "1.63.0")]
2423
pub const fn new() -> Condvar {
2524
Condvar { counter: AtomicUsize::new(0), timed_out: AtomicUsize::new(0) }
2625
}

‎std/src/sys/sync/mutex/xous.rs

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ pub struct Mutex {
2424

2525
impl Mutex {
2626
#[inline]
27-
#[rustc_const_stable(feature = "const_locks", since = "1.63.0")]
2827
pub const fn new() -> Mutex {
2928
Mutex { locked: AtomicUsize::new(0), contended: AtomicBool::new(false) }
3029
}

0 commit comments

Comments
 (0)
Failed to load comments.