about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/json.rs
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2020-04-07 10:55:00 -0700
committerJosh Stone <jistone@redhat.com>2020-04-07 10:55:00 -0700
commit859b8da21fc82c08fde8b3aafefc12881a0c3f09 (patch)
tree898f76f9d228e5000b19f8addefab084b68e1ece /src/test/rustdoc-ui/coverage/json.rs
parent39b62533c7f9d0581a6ea9b9fc2cc51f21c3b5b0 (diff)
downloadrust-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