]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sync/once.rs
CStr::from_bytes
[rust.git] / src / libstd / sync / once.rs
index 269affff20855ba52bfd130495d48d31f4341453..a91e1321149a3fa8eb210f6e120f2385ea68edda 100644 (file)
@@ -13,8 +13,6 @@
 //! This primitive is meant to be used to run one-time initialization. An
 //! example use case would be for initializing an FFI library.
 
-use prelude::v1::*;
-
 use isize;
 use sync::atomic::{AtomicIsize, Ordering};
 use sync::StaticMutex;
@@ -48,7 +46,7 @@ pub struct Once {
 
 impl Once {
     /// Creates a new `Once` value.
-    #[unstable(feature = "std_misc")]
+    #[stable(feature = "once_new", since = "1.2.0")]
     pub const fn new() -> Once {
         Once {
             mutex: StaticMutex::new(),