Skip to content

Commit df5d035

Browse files
committed
mark sys_common::once::generic::Once::new const-stable
1 parent 21b2465 commit df5d035

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/std/src/sys_common/once/generic.rs

+1
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)