提交 8a6b7240 编写于 作者: M Manish Goregaokar

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.
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册