summaryrefslogtreecommitdiffstats
path: root/library/std/src/sys/unsupported/locks/mutex.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/sys/unsupported/locks/mutex.rs')
-rw-r--r--library/std/src/sys/unsupported/locks/mutex.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/unsupported/locks/mutex.rs b/library/std/src/sys/unsupported/locks/mutex.rs
index 2be0b34b9..87ea475c6 100644
--- a/library/std/src/sys/unsupported/locks/mutex.rs
+++ b/library/std/src/sys/unsupported/locks/mutex.rs
@@ -12,6 +12,7 @@ unsafe impl Sync for Mutex {} // no threads on this platform
impl Mutex {
#[inline]
+ #[rustc_const_stable(feature = "const_locks", since = "1.63.0")]
pub const fn new() -> Mutex {
Mutex { locked: Cell::new(false) }
}