rust/library/core
Yuki Okushi c00439f682
Rollup merge of #83990 - the8472:take-trusted-len, r=dtolnay
implement `TrustedRandomAccess` for `Take` iterator adapter

`TrustedRandomAccess` requires the iterator length to fit within `usize`. `take(n)` only constrains the upper bound of an iterator. So if the inner is `TrustedRandomAccess` (which already implies a finite length) then so can be `Take`.

```````@rustbot``````` label T-libs-impl
2021-04-24 12:17:01 +09:00
..
benches add bench 2021-03-18 00:25:20 +01:00
src Rollup merge of #83990 - the8472:take-trusted-len, r=dtolnay 2021-04-24 12:17:01 +09:00
tests Auto merge of #77704 - AnthonyMikh:slice_index_with_ops_bound_pair, r=m-ou-se 2021-04-22 15:36:27 +00:00
Cargo.toml Auto merge of #82271 - Aaron1011:debug-refcell, r=m-ou-se 2021-03-23 04:49:47 +00:00