diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-04-24 12:17:01 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-24 12:17:01 +0900 |
| commit | c00439f6822955a786603373c447b0f81d80a3ea (patch) | |
| tree | 86a7deb2164c60830386897212247251c0a25fcc /src/test/codegen/src-hash-algorithm | |
| parent | 8ad0821b035e35aed07ec252c2dd831c15a4e26e (diff) | |
| parent | 37a5b515e9c36ee3f57d9e0d7db7efce2fb02195 (diff) | |
| download | rust-c00439f6822955a786603373c447b0f81d80a3ea.tar.gz rust-c00439f6822955a786603373c447b0f81d80a3ea.zip | |
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
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
