Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FuturesUnordered: fix partial iteration
The IntoIter impl advances the head pointer every iteration, but this breaks the linked list invariant that the head's prev should be null. If the iteration is not done to completion, on subsequent drop, FuturesUnordered::unlink relies on this broken invariant and ends up panicking. The fix is to maintain the `head->prev == null` invariant while iterating.
- Loading branch information