Skip to content

Commit

Permalink
mark sys_common::once::generic::Once::new const-stable
Browse files Browse the repository at this point in the history
  • Loading branch information
krasimirgg committed Oct 18, 2022
1 parent 21b2465 commit df5d035
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/std/src/sys_common/once/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ struct WaiterQueue<'a> {

impl Once {
#[inline]
#[rustc_const_stable(feature = "const_once_new", since = "1.32.0")]
pub const fn new() -> Once {
Once { state_and_queue: AtomicPtr::new(ptr::invalid_mut(INCOMPLETE)) }
}
Expand Down

0 comments on commit df5d035

Please sign in to comment.