about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-01-10 12:10:08 +0000
committerbors <bors@rust-lang.org>2015-01-10 12:10:08 +0000
commita09b139f9c4c6f4a2c3fb78e906e3ae0abf7f901 (patch)
treea9b66d9f8c8766c5578c86e91087ef7318bd7c45
parent3975af567a73966fce7967c19b428086234241b4 (diff)
parentccb1e460dc6f9807a36a4a1f941ec6e4ac1a7ed5 (diff)
downloadrust-a09b139f9c4c6f4a2c3fb78e906e3ae0abf7f901.tar.gz
rust-a09b139f9c4c6f4a2c3fb78e906e3ae0abf7f901.zip
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.
-rw-r--r--src/libcore/iter.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs
index d4aa4c99a76..849080e8a82 100644
--- a/src/libcore/iter.rs
+++ b/src/libcore/iter.rs
@@ -110,6 +110,7 @@ pub trait FromIterator<A> {
 #[stable]
 pub trait Extend<A> {
     /// Extend a container with the elements yielded by an arbitrary iterator
+    #[stable]
     fn extend<T: Iterator<Item=A>>(&mut self, iterator: T);
 }
 
@@ -965,6 +966,7 @@ impl<I> IteratorExt for I where I: Iterator {}
 #[stable]
 pub trait DoubleEndedIterator: Iterator {
     /// Yield an element from the end of the range, returning `None` if the range is empty.
+    #[stable]
     fn next_back(&mut self) -> Option<Self::Item>;
 }