]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #16728 : bluss/rust/zip-next-back, r=alexcrichton
authorbors <bors@rust-lang.org>
Sun, 24 Aug 2014 18:46:01 +0000 (18:46 +0000)
committerbors <bors@rust-lang.org>
Sun, 24 Aug 2014 18:46:01 +0000 (18:46 +0000)
Use ExactSize::len() and defer to its decisions about overly defensive
assertions. Remove the length double-check and simply put a failure
case if the Zip finds an uneven end in .next_back().

Fixing this up since I think I wrote this, and it's been known to
confuse rusties (PR #15886).


Trivial merge