Skip to content

Commit 2f391da

Browse files
committed
Auto merge of #86765 - cuviper:fuse-less-specialized, r=joshtriplett
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.
2 parents e87188c + 6f5e933 commit 2f391da

File tree

1 file changed

+66
-188
lines changed
  • library/core/src/iter/adapters

1 file changed

+66
-188
lines changed

0 commit comments

Comments
 (0)