diff options
| author | Josh Stone <jistone@redhat.com> | 2020-04-07 10:55:00 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2020-04-07 10:55:00 -0700 |
| commit | 859b8da21fc82c08fde8b3aafefc12881a0c3f09 (patch) | |
| tree | 898f76f9d228e5000b19f8addefab084b68e1ece /src/test/rustdoc-ui/coverage/json.rs | |
| parent | 39b62533c7f9d0581a6ea9b9fc2cc51f21c3b5b0 (diff) | |
| download | rust-859b8da21fc82c08fde8b3aafefc12881a0c3f09.tar.gz rust-859b8da21fc82c08fde8b3aafefc12881a0c3f09.zip | |
Implement Chain with Option fuses
The iterators are now "fused" with `Option` so we don't need separate state to track which part is already exhausted, and we may also get niche layout for `None`. We don't use the real `Fuse` adapter because its specialization for `FusedIterator` unconditionally descends into the iterator, and that could be expensive to keep revisiting stuff like nested chains. It also hurts compiler performance to add more iterator layers to `Chain`.
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions
