]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #37944 - bluss:adaptors-are-empty, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 24 Nov 2016 17:56:11 +0000 (11:56 -0600)
committerGitHub <noreply@github.com>
Thu, 24 Nov 2016 17:56:11 +0000 (11:56 -0600)
Forward ExactSizeIterator::len and is_empty for important iterator adaptors

Forward ExactSizeIterator::len and is_empty for important iterator adaptors

Because some iterators will provide improved version of len and/or is_empty,
adaptors should forward to those implementations if possible.

1  2 
src/libcore/iter/mod.rs

Simple merge