Skip to content

Commit 9d41991

Browse files
committed
mark sys_common::once::generic::Once::new const-stable
1 parent 85bc402 commit 9d41991

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

std/src/sys_common/once/generic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ struct WaiterQueue<'a> {
107107

108108
impl Once {
109109
#[inline]
110+
#[rustc_const_stable(feature = "const_once_new", since = "1.32.0")]
110111
pub const fn new() -> Once {
111112
Once { state_and_queue: AtomicPtr::new(ptr::invalid_mut(INCOMPLETE)) }
112113
}

0 commit comments

Comments
 (0)