diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-06-09 11:18:03 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-06-17 09:06:59 -0700 |
| commit | c14d86fd3ff3ba2d01a6e859290b30e74081313b (patch) | |
| tree | 79ec999c2885ff0d2f3b9836be5938bc0d6339b4 /src/libcore/array.rs | |
| parent | e7a5a1c33a7794a97eb11a38cc576375a3553a64 (diff) | |
| download | rust-c14d86fd3ff3ba2d01a6e859290b30e74081313b.tar.gz rust-c14d86fd3ff3ba2d01a6e859290b30e74081313b.zip | |
core: Split apart the global `core` feature
This commit shards the broad `core` feature of the libcore library into finer grained features. This split groups together similar APIs and enables tracking each API separately, giving a better sense of where each feature is within the stabilization process. A few minor APIs were deprecated along the way: * Iterator::reverse_in_place * marker::NoCopy
Diffstat (limited to 'src/libcore/array.rs')
| -rw-r--r-- | src/libcore/array.rs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/libcore/array.rs b/src/libcore/array.rs index 91301ee558c..a9b240de30b 100644 --- a/src/libcore/array.rs +++ b/src/libcore/array.rs @@ -12,9 +12,10 @@ //! up to a certain length. Eventually we should able to generalize //! to all lengths. -#![unstable(feature = "core")] // not yet reviewed - #![doc(primitive = "array")] +#![unstable(feature = "fixed_size_array", + reason = "traits and impls are better expressed through generic \ + integer constants")] use clone::Clone; use cmp::{PartialEq, Eq, PartialOrd, Ord, Ordering}; @@ -30,7 +31,6 @@ use slice::{Iter, IterMut, SliceExt}; /// /// This trait can be used to implement other traits on fixed-size arrays /// without causing much metadata bloat. -#[unstable(feature = "core")] pub trait FixedSizeArray<T> { /// Converts the array to immutable slice fn as_slice(&self) -> &[T]; @@ -42,7 +42,6 @@ pub trait FixedSizeArray<T> { macro_rules! array_impls { ($($N:expr)+) => { $( - #[unstable(feature = "core")] impl<T> FixedSizeArray<T> for [T; $N] { #[inline] fn as_slice(&self) -> &[T] { @@ -54,8 +53,6 @@ macro_rules! array_impls { } } - #[unstable(feature = "array_as_ref", - reason = "should ideally be implemented for all fixed-sized arrays")] impl<T> AsRef<[T]> for [T; $N] { #[inline] fn as_ref(&self) -> &[T] { @@ -63,8 +60,6 @@ macro_rules! array_impls { } } - #[unstable(feature = "array_as_ref", - reason = "should ideally be implemented for all fixed-sized arrays")] impl<T> AsMut<[T]> for [T; $N] { #[inline] fn as_mut(&mut self) -> &mut [T] { |
