os-rust/library/alloc
bors 40db258731 Auto merge of #87974 - steffahn:slice_split_size_hints, r=dtolnay
Test and fix `size_hint` for slice’s [r]split* iterators

Adds extensive test (of `size_hint`) for all the _[r]split*_ iterators.
Fixes `size_hint` upper bound for _split_inclusive*_ iterators which was one higher than necessary for non-empty slices.
Fixes `size_hint` lower bound for _[r]splitn*_ iterators when _n == 0_, which was one too high.

**Lower bound being one too high was a logic error, violating the correctness condition of `size_hint`.**

_Edit:_ I’ve opened an issue for that bug, so this PR fixes #87978
2021-08-15 04:48:42 +00:00
..
benches Fix may not to appropriate might not or must not 2021-07-29 01:15:20 -04:00
src Auto merge of #87913 - a1phyr:vec_spec_clone_from, r=dtolnay 2021-08-14 14:52:33 +00:00
tests Auto merge of #87974 - steffahn:slice_split_size_hints, r=dtolnay 2021-08-15 04:48:42 +00:00
Cargo.toml rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00