diff options
| author | Brian Anderson <banderson@mozilla.com> | 2015-01-14 15:20:14 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2015-01-21 16:16:21 -0800 |
| commit | 7b73ec469878e428c789b77320b3f8dc8d974d22 (patch) | |
| tree | 297c1f66334f03df5b0da3f2ea37bfb00a63453e /src/libstd | |
| parent | 94ca8a361026d1a622a961e8dc8cacc331ed1ac3 (diff) | |
| download | rust-7b73ec469878e428c789b77320b3f8dc8d974d22.tar.gz rust-7b73ec469878e428c789b77320b3f8dc8d974d22.zip | |
Tie stability attributes to feature gates
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/collections/hash/table.rs | 1 | ||||
| -rw-r--r-- | src/libstd/io/mod.rs | 1 | ||||
| -rw-r--r-- | src/libstd/io/net/tcp.rs | 3 | ||||
| -rw-r--r-- | src/libstd/io/net/udp.rs | 1 | ||||
| -rw-r--r-- | src/libstd/io/process.rs | 2 | ||||
| -rw-r--r-- | src/libstd/lib.rs | 2 | ||||
| -rw-r--r-- | src/libstd/thunk.rs | 1 |
7 files changed, 2 insertions, 9 deletions
diff --git a/src/libstd/collections/hash/table.rs b/src/libstd/collections/hash/table.rs index d810460a7d4..9e6a45d8bf0 100644 --- a/src/libstd/collections/hash/table.rs +++ b/src/libstd/collections/hash/table.rs @@ -629,7 +629,6 @@ impl<K, V> RawTable<K, V> { /// Creates a new raw table from a given capacity. All buckets are /// initially empty. - #[allow(unstable)] pub fn new(capacity: uint) -> RawTable<K, V> { unsafe { let ret = RawTable::new_uninitialized(capacity); diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index f680f896238..012728be56a 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -1703,7 +1703,6 @@ pub enum FileType { /// # Examples /// /// ```no_run -/// # #![allow(unstable)] /// /// use std::io::fs::PathExtensions; /// diff --git a/src/libstd/io/net/tcp.rs b/src/libstd/io/net/tcp.rs index 180deae6a25..88d74c5c288 100644 --- a/src/libstd/io/net/tcp.rs +++ b/src/libstd/io/net/tcp.rs @@ -376,7 +376,6 @@ impl TcpAcceptor { /// # Example /// /// ```no_run - /// # #![allow(unstable)] /// use std::io::TcpListener; /// use std::io::{Listener, Acceptor, TimedOut}; /// @@ -421,7 +420,6 @@ impl TcpAcceptor { /// # Example /// /// ``` - /// # #![allow(unstable)] /// use std::io::{TcpListener, Listener, Acceptor, EndOfFile}; /// use std::thread::Thread; /// @@ -485,7 +483,6 @@ impl sys_common::AsInner<TcpAcceptorImp> for TcpAcceptor { } #[cfg(test)] -#[allow(unstable)] mod test { use prelude::v1::*; diff --git a/src/libstd/io/net/udp.rs b/src/libstd/io/net/udp.rs index a3e4eca10bc..9920e002795 100644 --- a/src/libstd/io/net/udp.rs +++ b/src/libstd/io/net/udp.rs @@ -179,7 +179,6 @@ impl sys_common::AsInner<UdpSocketImp> for UdpSocket { } #[cfg(test)] -#[allow(unstable)] mod test { use prelude::v1::*; diff --git a/src/libstd/io/process.rs b/src/libstd/io/process.rs index 4762719a04e..dc15eb1302f 100644 --- a/src/libstd/io/process.rs +++ b/src/libstd/io/process.rs @@ -10,7 +10,6 @@ //! Bindings for executing child processes -#![allow(unstable)] #![allow(non_upper_case_globals)] pub use self::StdioContainer::*; @@ -663,7 +662,6 @@ impl Process { /// # Example /// /// ```no_run - /// # #![allow(unstable)] /// use std::io::{Command, IoResult}; /// use std::io::process::ProcessExit; /// diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index a86a6eb4bfe..6760640d33a 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -113,7 +113,7 @@ #![feature(optin_builtin_traits)] #![feature(int_uint)] #![feature(int_uint)] -#![allow(unstable)] +#![feature(unnamed_feature)] // Don't link to std. We are std. #![no_std] diff --git a/src/libstd/thunk.rs b/src/libstd/thunk.rs index 1830a4df54a..94c86fcf1c8 100644 --- a/src/libstd/thunk.rs +++ b/src/libstd/thunk.rs @@ -10,6 +10,7 @@ // Because this module is temporary... #![allow(missing_docs)] +#![unstable(feature = "unnamed_feature", since = "1.0.0")] use alloc::boxed::Box; use core::marker::Send; |
