]> git.proxmox.com Git - rustc.git/blobdiff - library/std/src/sys_common/condvar.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / library / std / src / sys_common / condvar.rs
index f3ac1061b8935045ab1b01ca920dd324c4e06999..8bc5b24115d1686b767dce76c9356c0ed24b2354 100644 (file)
@@ -15,6 +15,7 @@ pub struct Condvar {
 impl Condvar {
     /// Creates a new condition variable for use.
     #[inline]
+    #[rustc_const_stable(feature = "const_locks", since = "1.63.0")]
     pub const fn new() -> Self {
         Self { inner: imp::MovableCondvar::new(), check: CondvarCheck::new() }
     }