Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Panic if
All
or Any
are polled after completing due to a short-ci…
…rcuit These futures should panic if they are polled after completing. Currently they do so but only if they complete due to exhausting the `Stream` that they pull data from. If they complete due to short-circuiting, they are left in a state where `fut` and `accum` are still `Some`. This means that if they are polled again, they end up polling the inner `fut` again. That usually causes a panic but the error message will likely reference the internal `Future`, not `All` / `Any`. With this commit, `All` and `Any`'s internal state will be set such that if they are polled again after completing, they will panic without polling `fut`.
- Loading branch information