about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-04-24 12:17:01 +0900
committerGitHub <noreply@github.com>2021-04-24 12:17:01 +0900
commitc00439f6822955a786603373c447b0f81d80a3ea (patch)
tree86a7deb2164c60830386897212247251c0a25fcc /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent8ad0821b035e35aed07ec252c2dd831c15a4e26e (diff)
parent37a5b515e9c36ee3f57d9e0d7db7efce2fb02195 (diff)
downloadrust-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/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions