Skip to content

Commit a09b139

Browse files
committed
auto merge of #20839 : alexcrichton/rust/missing-stability, r=aturon
Both `Extend::extend` and `DoubleEndedIterator::next_back` were intended to be stable, but they mistakenly didn't have the `#[stable]` tag.
2 parents 3975af5 + ccb1e46 commit a09b139

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libcore/iter.rs

+2
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ pub trait FromIterator<A> {
110110
#[stable]
111111
pub trait Extend<A> {
112112
/// Extend a container with the elements yielded by an arbitrary iterator
113+
#[stable]
113114
fn extend<T: Iterator<Item=A>>(&mut self, iterator: T);
114115
}
115116

@@ -965,6 +966,7 @@ impl<I> IteratorExt for I where I: Iterator {}
965966
#[stable]
966967
pub trait DoubleEndedIterator: Iterator {
967968
/// Yield an element from the end of the range, returning `None` if the range is empty.
969+
#[stable]
968970
fn next_back(&mut self) -> Option<Self::Item>;
969971
}
970972

0 commit comments

Comments
 (0)