From ccb1e460dc6f9807a36a4a1f941ec6e4ac1a7ed5 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 9 Jan 2015 15:49:09 -0800 Subject: [PATCH] std: Mark two missing functions as #[stable] Both `Extend::extend` and `DoubleEndedIterator::next_back` were intended to be stable, but they mistakenly didn't have the `#[stable]` tag. --- src/libcore/iter.rs | 2 ++ 1 file changed, 2 insertions(+) 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 { #[stable] pub trait Extend { /// Extend a container with the elements yielded by an arbitrary iterator + #[stable] fn extend>(&mut self, iterator: T); } @@ -965,6 +966,7 @@ impl 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; }