Skip to content

Commit f358087

Browse files
committed
std: Stabilize the once_new feature
This function follows the well-established "constructor" pattern and the initialization constant will likely be deprecated in favor of it once `const_fn` is stabilized.
1 parent c032d6f commit f358087

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sync/once.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub const ONCE_INIT: Once = Once::new();
4848

4949
impl Once {
5050
/// Creates a new `Once` value.
51-
#[unstable(feature = "once_new")]
51+
#[stable(feature = "once_new", since = "1.2.0")]
5252
pub const fn new() -> Once {
5353
Once {
5454
mutex: StaticMutex::new(),

0 commit comments

Comments
 (0)