about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-06-10 18:44:11 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-06-17 09:07:16 -0700
commitf3580879b90f451b24b9d6008f571745fc6cbd6c (patch)
treed89a6d1cf0caa957682277a49cdf0638b18a43b8 /src/libstd/sync
parentc032d6fd397d95ccfa7c9bbefc8cc508906b8d34 (diff)
downloadrust-f3580879b90f451b24b9d6008f571745fc6cbd6c.tar.gz
rust-f3580879b90f451b24b9d6008f571745fc6cbd6c.zip
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.
Diffstat (limited to 'src/libstd/sync')
-rw-r--r--src/libstd/sync/once.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/once.rs b/src/libstd/sync/once.rs
index 1e0aa271b4d..0bda6a975a2 100644
--- a/src/libstd/sync/once.rs
+++ b/src/libstd/sync/once.rs
@@ -48,7 +48,7 @@ pub const ONCE_INIT: Once = Once::new();
 
 impl Once {
     /// Creates a new `Once` value.
-    #[unstable(feature = "once_new")]
+    #[stable(feature = "once_new", since = "1.2.0")]
     pub const fn new() -> Once {
         Once {
             mutex: StaticMutex::new(),