We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1625435 + df5d035 commit 3683c43Copy full SHA for 3683c43
library/std/src/sys_common/once/generic.rs
@@ -107,6 +107,7 @@ struct WaiterQueue<'a> {
107
108
impl Once {
109
#[inline]
110
+ #[rustc_const_stable(feature = "const_once_new", since = "1.32.0")]
111
pub const fn new() -> Once {
112
Once { state_and_queue: AtomicPtr::new(ptr::invalid_mut(INCOMPLETE)) }
113
}
0 commit comments