Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Weaken guarantee around advancing underlying iterators in zip
The current guarantee is too strong as it would prevent adapters from exploiting knowledge about the iterator length and using counted loops for example because they would stop calling `next()` before it ever returned `None`. Additionally several nested zip iterators already fail to uphold this. This doesn't remove any of the specialization code that tries (and sometimes fails) to uphold the guarantee for `next()` because removing it would also affect `next_back()` in more surprising ways.
- Loading branch information