From 177f8bc55c544d5a5f35ffb19f47125d001e48c4 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sun, 4 Jan 2015 23:34:42 -0800 Subject: std: Fix missing stability in sync * The `sync` module is stable * The `sync::mpsc` module is stable * The `Sender::send` method is stable. * The `Once::doit` method is now removed. * Deprecated atomic initializers are removed. * Renamed atomic initializers are now stable. --- src/libstd/sync/mod.rs | 2 +- src/libstd/sync/mpsc/mod.rs | 3 +++ src/libstd/sync/once.rs | 4 ---- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/sync/mod.rs b/src/libstd/sync/mod.rs index 6ce278726e9..44671b52ba0 100644 --- a/src/libstd/sync/mod.rs +++ b/src/libstd/sync/mod.rs @@ -15,7 +15,7 @@ //! and/or blocking at all, but rather provide the necessary tools to build //! other types of concurrent primitives. -#![experimental] +#![stable] pub use alloc::arc::{Arc, Weak}; pub use core::atomic; diff --git a/src/libstd/sync/mpsc/mod.rs b/src/libstd/sync/mpsc/mod.rs index 6bc3f561bb3..84284ae6d66 100644 --- a/src/libstd/sync/mpsc/mod.rs +++ b/src/libstd/sync/mpsc/mod.rs @@ -163,6 +163,8 @@ //! } //! ``` +#![stable] + // A description of how Rust's channel implementation works // // Channels are supposed to be the basic building block for all other @@ -565,6 +567,7 @@ impl Sender { /// drop(rx); /// assert_eq!(tx.send(1i).err().unwrap().0, 1); /// ``` + #[stable] pub fn send(&self, t: T) -> Result<(), SendError> { let (new_inner, ret) = match *unsafe { self.inner() } { Flavor::Oneshot(ref p) => { diff --git a/src/libstd/sync/once.rs b/src/libstd/sync/once.rs index 08e323c9cb4..aa2d957a3eb 100644 --- a/src/libstd/sync/once.rs +++ b/src/libstd/sync/once.rs @@ -121,10 +121,6 @@ impl Once { unsafe { self.mutex.destroy() } } } - - /// Deprecated - #[deprecated = "renamed to `call_once`"] - pub fn doit(&'static self, f: F) where F: FnOnce() { self.call_once(f) } } #[cfg(test)] -- cgit 1.4.1-3-g733a5 From dc246ae0188500c2e3c62704aa9f8b2f02fd586c Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sun, 4 Jan 2015 23:40:07 -0800 Subject: std: Fix missing stability on prelude The module itself is stable (the name) --- src/libstd/prelude/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libstd') diff --git a/src/libstd/prelude/mod.rs b/src/libstd/prelude/mod.rs index 1fbd17ede08..0496944dbaf 100644 --- a/src/libstd/prelude/mod.rs +++ b/src/libstd/prelude/mod.rs @@ -35,5 +35,7 @@ //! pervasive that it would be obnoxious to import for every use, particularly //! those that define methods on primitive types. +#![stable] + #[stable] pub mod v1; -- cgit 1.4.1-3-g733a5