提交 589c8244 编写于 作者: A Andrew Paseltiner

Remove unnecessary `#![feature]` attributes

上级 9169e6c5
......@@ -506,8 +506,6 @@ pub fn slice_shift_char(&self) -> Option<(char, &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);
......
......@@ -753,8 +753,6 @@ pub fn is_empty(&self) -> bool { self.len() == 0 }
/// # Examples
///
/// ```
/// #![feature(split_off)]
///
/// let mut vec = vec![1,2,3];
/// let vec2 = vec.split_off(1);
/// assert_eq!(vec, [1]);
......
......@@ -1319,8 +1319,6 @@ pub fn remove(&mut self, index: usize) -> Option<T> {
/// # Examples
///
/// ```
/// #![feature(split_off)]
///
/// use std::collections::VecDeque;
///
/// let mut buf: VecDeque<_> = vec![1,2,3].into_iter().collect();
......@@ -1406,8 +1404,6 @@ pub fn append(&mut self, other: &mut Self) {
/// # Examples
///
/// ```
/// #![feature(vec_deque_retain)]
///
/// use std::collections::VecDeque;
///
/// let mut buf = VecDeque::new();
......
......@@ -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;
......
......@@ -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;
......
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册