diff options
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/cell.rs | 2 | ||||
| -rw-r--r-- | src/libcore/cmp.rs | 8 | ||||
| -rw-r--r-- | src/libcore/fmt/num.rs | 2 | ||||
| -rw-r--r-- | src/libcore/hash/mod.rs | 4 | ||||
| -rw-r--r-- | src/libcore/iter.rs | 18 | ||||
| -rw-r--r-- | src/libcore/marker.rs | 2 | ||||
| -rw-r--r-- | src/libcore/option.rs | 2 | ||||
| -rw-r--r-- | src/libcore/ptr.rs | 2 | ||||
| -rw-r--r-- | src/libcore/raw.rs | 4 | ||||
| -rw-r--r-- | src/libcore/result.rs | 2 | ||||
| -rw-r--r-- | src/libcore/simd.rs | 2 |
11 files changed, 24 insertions, 24 deletions
diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index 56dfd922dc1..37f37654c1f 100644 --- a/src/libcore/cell.rs +++ b/src/libcore/cell.rs @@ -221,7 +221,7 @@ impl<T:Copy> Cell<T> { /// # Examples /// /// ``` - /// # #![feature(core)] + /// # #![feature(as_unsafe_cell)] /// use std::cell::Cell; /// /// let c = Cell::new(5); diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs index b12b5976010..0269499ad54 100644 --- a/src/libcore/cmp.rs +++ b/src/libcore/cmp.rs @@ -381,7 +381,7 @@ pub fn max<T: Ord>(v1: T, v2: T) -> T { /// # Examples /// /// ``` -/// # #![feature(core)] +/// # #![feature(cmp_partial)] /// use std::cmp; /// /// assert_eq!(Some(1), cmp::partial_min(1, 2)); @@ -391,7 +391,7 @@ pub fn max<T: Ord>(v1: T, v2: T) -> T { /// When comparison is impossible: /// /// ``` -/// # #![feature(core)] +/// # #![feature(cmp_partial)] /// use std::cmp; /// /// let result = cmp::partial_min(std::f64::NAN, 1.0); @@ -414,7 +414,7 @@ pub fn partial_min<T: PartialOrd>(v1: T, v2: T) -> Option<T> { /// # Examples /// /// ``` -/// # #![feature(core)] +/// # #![feature(cmp_partial)] /// use std::cmp; /// /// assert_eq!(Some(2), cmp::partial_max(1, 2)); @@ -424,7 +424,7 @@ pub fn partial_min<T: PartialOrd>(v1: T, v2: T) -> Option<T> { /// When comparison is impossible: /// /// ``` -/// # #![feature(core)] +/// # #![feature(cmp_partial)] /// use std::cmp; /// /// let result = cmp::partial_max(std::f64::NAN, 1.0); diff --git a/src/libcore/fmt/num.rs b/src/libcore/fmt/num.rs index 6aaec20382e..fc49f87d107 100644 --- a/src/libcore/fmt/num.rs +++ b/src/libcore/fmt/num.rs @@ -162,7 +162,7 @@ pub struct RadixFmt<T, R>(T, R); /// # Examples /// /// ``` -/// # #![feature(core)] +/// # #![feature(fmt_radix)] /// use std::fmt::radix; /// assert_eq!(format!("{}", radix(55, 36)), "1j".to_string()); /// ``` diff --git a/src/libcore/hash/mod.rs b/src/libcore/hash/mod.rs index cbf2828a7dc..abf9e55a1f2 100644 --- a/src/libcore/hash/mod.rs +++ b/src/libcore/hash/mod.rs @@ -16,7 +16,7 @@ //! # Examples //! //! ```rust -//! # #![feature(hash)] +//! # #![feature(hash_default)] //! use std::hash::{hash, Hash, SipHasher}; //! //! #[derive(Hash)] @@ -36,7 +36,7 @@ //! the trait `Hash`: //! //! ```rust -//! # #![feature(hash)] +//! # #![feature(hash_default)] //! use std::hash::{hash, Hash, Hasher, SipHasher}; //! //! struct Person { diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index da714671c57..30c2d3fcb6d 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -822,7 +822,7 @@ pub trait Iterator { /// # Examples /// /// ``` - /// # #![feature(core)] + /// # #![feature(iter_min_max)] /// use std::iter::MinMaxResult::{NoElements, OneElement, MinMax}; /// /// let a: [i32; 0] = []; @@ -894,7 +894,7 @@ pub trait Iterator { /// # Examples /// /// ``` - /// # #![feature(core)] + /// # #![feature(iter_cmp)] /// let a = [-3_i32, 0, 1, 5, -10]; /// assert_eq!(*a.iter().max_by(|x| x.abs()).unwrap(), -10); /// ``` @@ -922,7 +922,7 @@ pub trait Iterator { /// # Examples /// /// ``` - /// # #![feature(core)] + /// # #![feature(iter_cmp)] /// let a = [-3_i32, 0, 1, 5, -10]; /// assert_eq!(*a.iter().min_by(|x| x.abs()).unwrap(), 0); /// ``` @@ -1061,12 +1061,12 @@ pub trait Iterator { /// # Examples /// /// ``` - /// # #![feature(core)] + /// # #![feature(iter_arith)] /// let a = [1, 2, 3, 4, 5]; /// let it = a.iter(); /// assert_eq!(it.sum::<i32>(), 15); /// ``` - #[unstable(feature="iter_sum", reason = "bounds recently changed")] + #[unstable(feature="iter_arith", reason = "bounds recently changed")] fn sum<S=<Self as Iterator>::Item>(self) -> S where S: Add<Self::Item, Output=S> + Zero, Self: Sized, @@ -1079,7 +1079,7 @@ pub trait Iterator { /// # Examples /// /// ``` - /// # #![feature(core)] + /// # #![feature(iter_arith)] /// fn factorial(n: u32) -> u32 { /// (1..).take_while(|&i| i <= n).product() /// } @@ -1087,7 +1087,7 @@ pub trait Iterator { /// assert_eq!(factorial(1), 1); /// assert_eq!(factorial(5), 120); /// ``` - #[unstable(feature="iter_product", reason = "bounds recently changed")] + #[unstable(feature="iter_arith", reason = "bounds recently changed")] fn product<P=<Self as Iterator>::Item>(self) -> P where P: Mul<Self::Item, Output=P> + One, Self: Sized, @@ -1353,7 +1353,7 @@ impl<T: Clone> MinMaxResult<T> { /// # Examples /// /// ``` - /// # #![feature(core)] + /// # #![feature(iter_min_max)] /// use std::iter::MinMaxResult::{self, NoElements, OneElement, MinMax}; /// /// let r: MinMaxResult<i32> = NoElements; @@ -2509,7 +2509,7 @@ impl<I: RandomAccessIterator, F> RandomAccessIterator for Inspect<I, F> /// An iterator that yields sequential Fibonacci numbers, and stops on overflow. /// /// ``` -/// #![feature(core)] +/// #![feature(iter_unfold)] /// use std::iter::Unfold; /// /// // This iterator will yield up to the last Fibonacci number before the max diff --git a/src/libcore/marker.rs b/src/libcore/marker.rs index dc3b06977d6..dd60164a114 100644 --- a/src/libcore/marker.rs +++ b/src/libcore/marker.rs @@ -388,7 +388,7 @@ mod impls { /// that function. Here is an example: /// /// ``` -/// #![feature(core)] +/// #![feature(reflect_marker)] /// use std::marker::Reflect; /// use std::any::Any; /// fn foo<T:Reflect+'static>(x: &T) { diff --git a/src/libcore/option.rs b/src/libcore/option.rs index 9a00d107147..c5203c5111b 100644 --- a/src/libcore/option.rs +++ b/src/libcore/option.rs @@ -274,7 +274,7 @@ impl<T> Option<T> { /// # Examples /// /// ``` - /// # #![feature(core)] + /// # #![feature(as_slice)] /// let mut x = Some("Diamonds"); /// { /// let v = x.as_mut_slice(); diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 0f1831e8314..31cdb6093c8 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -49,7 +49,7 @@ //! the raw pointer. It doesn't destroy `T` or deallocate any memory. //! //! ``` -//! # #![feature(alloc)] +//! # #![feature(box_raw)] //! use std::boxed; //! //! unsafe { diff --git a/src/libcore/raw.rs b/src/libcore/raw.rs index 85e1318d7a1..43535ddd1d5 100644 --- a/src/libcore/raw.rs +++ b/src/libcore/raw.rs @@ -49,7 +49,7 @@ use mem; /// # Examples /// /// ``` -/// # #![feature(core)] +/// # #![feature(raw)] /// use std::raw::{self, Repr}; /// /// let slice: &[u16] = &[1, 2, 3, 4]; @@ -98,7 +98,7 @@ impl<T> Clone for Slice<T> { /// # Examples /// /// ``` -/// # #![feature(core)] +/// # #![feature(raw)] /// use std::mem; /// use std::raw; /// diff --git a/src/libcore/result.rs b/src/libcore/result.rs index 998657a236d..7fd845edc3f 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -420,7 +420,7 @@ impl<T, E> Result<T, E> { /// Converts from `Result<T, E>` to `&mut [T]` (without copying) /// /// ``` - /// # #![feature(core)] + /// # #![feature(as_slice)] /// let mut x: Result<&str, u32> = Ok("Gold"); /// { /// let v = x.as_mut_slice(); diff --git a/src/libcore/simd.rs b/src/libcore/simd.rs index c3447867ce5..7ecd08bea35 100644 --- a/src/libcore/simd.rs +++ b/src/libcore/simd.rs @@ -19,7 +19,7 @@ //! provided beyond this module. //! //! ```rust -//! # #![feature(core)] +//! # #![feature(core_simd)] //! fn main() { //! use std::simd::f32x4; //! let a = f32x4(40.0, 41.0, 42.0, 43.0); |
