Skip to content

Commit 07afe8d

Browse files
authored
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.
2 parents 2707cd6 + 59944c9 commit 07afe8d

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

library/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
}

library/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)