Skip to content

Commit 2d78822

Browse files
committed
std: Mark the IntoIterator trait as stable
This commit marks the trait `IntoIterator` as well as the associated type `Iter` and method `into_iter` all as stable.
1 parent cfc7791 commit 2d78822

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libcore/iter.rs

+3
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,13 @@ pub trait FromIterator<A> {
124124
}
125125

126126
/// Conversion into an `Iterator`
127+
#[stable(feature = "rust1", since = "1.0.0")]
127128
pub trait IntoIterator {
129+
#[stable(feature = "rust1", since = "1.0.0")]
128130
type Iter: Iterator;
129131

130132
/// Consumes `Self` and returns an iterator over it
133+
#[stable(feature = "rust1", since = "1.0.0")]
131134
fn into_iter(self) -> Self::Iter;
132135
}
133136

0 commit comments

Comments
 (0)