Rollup merge of #22344 - nagisa:exactsizediter, r=alexcrichton

Appears to be just an oversight given it is the only method in a stable trait.

r? @aturon because you did final alpha stabilisation of iterators.
This commit is contained in:
Manish Goregaokar 2015-02-16 11:29:49 +05:30
commit 8a6b724009

View File

@ -1055,6 +1055,7 @@ pub trait RandomAccessIterator: Iterator {
#[stable(feature = "rust1", since = "1.0.0")]
pub trait ExactSizeIterator: Iterator {
#[inline]
#[stable(feature = "rust1", since = "1.0.0")]
/// Return the exact length of the iterator.
fn len(&self) -> usize {
let (lower, upper) = self.size_hint();