about summary refs log tree commit diff
path: root/tests/coverage/overflow.cov-map
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-21 11:17:46 +0000
committerbors <bors@rust-lang.org>2024-01-21 11:17:46 +0000
commitfa404339c9821b9c61661d63326d95e354b9753f (patch)
tree55aca00b68f21704b25328e1a77ccb63b835ce20 /tests/coverage/overflow.cov-map
parentcb25c5bc3d526a8fb931314cb3a7849115134b04 (diff)
parent37d26c719d35659a809624902324e828031e94df (diff)
downloadrust-fa404339c9821b9c61661d63326d95e354b9753f.tar.gz
rust-fa404339c9821b9c61661d63326d95e354b9753f.zip
Auto merge of #85528 - the8472:iter-markers, r=dtolnay
Implement iterator specialization traits on more adapters

This adds

* `TrustedLen` to `Skip` and `StepBy`
* `TrustedRandomAccess` to `Skip`
* `InPlaceIterable` and `SourceIter` to  `Copied` and `Cloned`

The first two might improve performance in the compiler itself since `skip` is used in several places. Constellations that would exercise the last point are probably rare since it would require an owning iterator that has references as Items somewhere in its iterator pipeline.

Improvements for `Skip`:

```
# old
test iter::bench_skip_trusted_random_access                     ... bench:       8,335 ns/iter (+/- 90)

# new
test iter::bench_skip_trusted_random_access                     ... bench:       2,753 ns/iter (+/- 27)
```
Diffstat (limited to 'tests/coverage/overflow.cov-map')
0 files changed, 0 insertions, 0 deletions