Skip to content

Commit

Permalink
Auto merge of #86765 - cuviper:fuse-less-specialized, r=joshtriplett
Browse files Browse the repository at this point in the history
Make the specialized Fuse still deal with None

Fixes #85863 by removing the assumption that we'll never see a cleared iterator in the `I: FusedIterator` specialization. Now all `Fuse` methods check for the possibility that `self.iter` is `None`, and the specialization only avoids _setting_ that to `None` in `&mut self` methods.
  • Loading branch information
bors committed Jul 14, 2021
2 parents e87188c + 6f5e933 commit 2f391da
Showing 1 changed file with 66 additions and 188 deletions.
Loading

0 comments on commit 2f391da

Please sign in to comment.