From 589c82449a8a2fc339757f12001e9309903791e3 Mon Sep 17 00:00:00 2001 From: Andrew Paseltiner Date: Sat, 26 Sep 2015 14:40:22 -0400 Subject: [PATCH] Remove unnecessary `#![feature]` attributes --- src/libcollections/str.rs | 2 -- src/libcollections/vec.rs | 2 -- src/libcollections/vec_deque.rs | 4 ---- src/libcollectionstest/lib.rs | 5 ----- src/librustc_front/lib.rs | 1 - src/libstd/lib.rs | 4 ++-- 6 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index 2f74ab5026e..350f17e44b8 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -506,8 +506,6 @@ impl str { /// /// # Examples /// ``` - /// #![feature(str_split_at)] - /// /// let s = "Löwe 老虎 Léopard"; /// let first_space = s.find(' ').unwrap_or(s.len()); /// let (a, b) = s.split_at(first_space); diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index de3e6f94e87..cc4db40ff80 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -753,8 +753,6 @@ impl Vec { /// # Examples /// /// ``` - /// #![feature(split_off)] - /// /// let mut vec = vec![1,2,3]; /// let vec2 = vec.split_off(1); /// assert_eq!(vec, [1]); diff --git a/src/libcollections/vec_deque.rs b/src/libcollections/vec_deque.rs index 4ee9787c9ec..9dd9805d2af 100644 --- a/src/libcollections/vec_deque.rs +++ b/src/libcollections/vec_deque.rs @@ -1319,8 +1319,6 @@ impl VecDeque { /// # Examples /// /// ``` - /// #![feature(split_off)] - /// /// use std::collections::VecDeque; /// /// let mut buf: VecDeque<_> = vec![1,2,3].into_iter().collect(); @@ -1406,8 +1404,6 @@ impl VecDeque { /// # Examples /// /// ``` - /// #![feature(vec_deque_retain)] - /// /// use std::collections::VecDeque; /// /// let mut buf = VecDeque::new(); diff --git a/src/libcollectionstest/lib.rs b/src/libcollectionstest/lib.rs index d84f5bdf107..63c7bc15c8f 100644 --- a/src/libcollectionstest/lib.rs +++ b/src/libcollectionstest/lib.rs @@ -9,7 +9,6 @@ // except according to those terms. #![feature(ascii)] -#![feature(append)] #![feature(binary_heap_extras)] #![feature(box_syntax)] #![feature(btree_range)] @@ -29,18 +28,14 @@ #![feature(set_recovery)] #![feature(slice_bytes)] #![feature(slice_splits)] -#![feature(split_off)] #![feature(step_by)] #![feature(str_char)] #![feature(str_escape)] #![feature(str_match_indices)] -#![feature(str_split_at)] #![feature(str_utf16)] -#![feature(box_str)] #![feature(test)] #![feature(unboxed_closures)] #![feature(unicode)] -#![feature(vec_deque_retain)] #![feature(vec_push_all)] #[macro_use] extern crate log; diff --git a/src/librustc_front/lib.rs b/src/librustc_front/lib.rs index 4c6d8505c81..fa2c098e2cf 100644 --- a/src/librustc_front/lib.rs +++ b/src/librustc_front/lib.rs @@ -36,7 +36,6 @@ #![feature(staged_api)] #![feature(str_char)] #![feature(filling_drop)] -#![cfg_attr(test, feature(test))] extern crate serialize; #[macro_use] extern crate log; diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index c67a4182f54..cb36b0c1f5a 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -248,8 +248,8 @@ #![feature(wrapping)] #![feature(zero_one)] #![cfg_attr(windows, feature(str_utf16))] -#![cfg_attr(test, feature(float_from_str_radix, range_inclusive, float_extras, hash_default))] -#![cfg_attr(test, feature(test, rustc_private, float_consts))] +#![cfg_attr(test, feature(float_from_str_radix, range_inclusive, float_extras))] +#![cfg_attr(test, feature(test, rustc_private))] #![cfg_attr(target_env = "msvc", feature(link_args))] // Don't link to std. We are std.