about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2015-01-14 15:20:14 -0800
committerBrian Anderson <banderson@mozilla.com>2015-01-21 16:16:21 -0800
commit7b73ec469878e428c789b77320b3f8dc8d974d22 (patch)
tree297c1f66334f03df5b0da3f2ea37bfb00a63453e /src/liballoc
parent94ca8a361026d1a622a961e8dc8cacc331ed1ac3 (diff)
downloadrust-7b73ec469878e428c789b77320b3f8dc8d974d22.tar.gz
rust-7b73ec469878e428c789b77320b3f8dc8d974d22.zip
Tie stability attributes to feature gates
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/arc.rs1
-rw-r--r--src/liballoc/lib.rs2
-rw-r--r--src/liballoc/rc.rs1
3 files changed, 1 insertions, 3 deletions
diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs
index 34322f7950c..9245d33047c 100644
--- a/src/liballoc/arc.rs
+++ b/src/liballoc/arc.rs
@@ -608,7 +608,6 @@ impl<H: Hasher, T: Hash<H>> Hash<H> for Arc<T> {
 }
 
 #[cfg(test)]
-#[allow(unstable)]
 mod tests {
     use std::clone::Clone;
     use std::sync::mpsc::channel;
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs
index 84527893374..b8c9c8403c3 100644
--- a/src/liballoc/lib.rs
+++ b/src/liballoc/lib.rs
@@ -66,10 +66,10 @@
 
 #![no_std]
 #![allow(unknown_features)]
-#![allow(unstable)]
 #![feature(lang_items, unsafe_destructor)]
 #![feature(box_syntax)]
 #![feature(optin_builtin_traits)]
+#![feature(unnamed_feature)]
 #![allow(unknown_features)] #![feature(int_uint)]
 
 #[macro_use]
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs
index 0b8c518a3a5..5e828106739 100644
--- a/src/liballoc/rc.rs
+++ b/src/liballoc/rc.rs
@@ -937,7 +937,6 @@ impl<T> RcBoxPtr<T> for Weak<T> {
 }
 
 #[cfg(test)]
-#[allow(unstable)]
 mod tests {
     use super::{Rc, Weak, weak_count, strong_count};
     use std::cell::RefCell;