about summary refs log tree commit diff
path: root/src/libcore/array.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-02-17 10:06:24 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-02-17 10:06:24 -0800
commitcc687869ab5f39816109625ba8d1787a25ff4abf (patch)
treeae9dce47a5bd7c9ee54468875da2db680001a170 /src/libcore/array.rs
parentf1bb6c2f46f08c1d7b6d695f5b3cf93142cb8860 (diff)
downloadrust-cc687869ab5f39816109625ba8d1787a25ff4abf.tar.gz
rust-cc687869ab5f39816109625ba8d1787a25ff4abf.zip
std: Stabilize the IntoIterator trait
Now that the necessary associated types exist for the `IntoIterator` trait this
commit stabilizes the trait as-is as well as all existing implementations.
Diffstat (limited to 'src/libcore/array.rs')
-rw-r--r--src/libcore/array.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/array.rs b/src/libcore/array.rs
index abaa7594d04..886893e647e 100644
--- a/src/libcore/array.rs
+++ b/src/libcore/array.rs
@@ -59,6 +59,7 @@ macro_rules! array_impls {
             }
 
             #[cfg(not(stage0))]  // NOTE(stage0): remove cfg after a snapshot
+            #[stable(feature = "rust1", since = "1.0.0")]
             impl<'a, T> IntoIterator for &'a [T; $N] {
                 type Item = &'a T;
                 type IntoIter = Iter<'a, T>;
@@ -79,6 +80,7 @@ macro_rules! array_impls {
             }
 
             #[cfg(not(stage0))]  // NOTE(stage0): remove cfg after a snapshot
+            #[stable(feature = "rust1", since = "1.0.0")]
             impl<'a, T> IntoIterator for &'a mut [T; $N] {
                 type Item = &'a mut T;
                 type IntoIter = IterMut<'a, T>;