about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-09-26 12:58:24 +0200
committerGitHub <noreply@github.com>2020-09-26 12:58:24 +0200
commit7c47b1e5f4920c5a15a9bc1c744f088646b031a3 (patch)
treef6d9b9425b0aaf7e496473123cccfae8618af118 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent7ff5b44a58357e11d15dc0ce34972f93c1bc6e57 (diff)
parent12ada5cf4bebabd7dc240a3a993eaebbdf2ed3d3 (diff)
downloadrust-7c47b1e5f4920c5a15a9bc1c744f088646b031a3.tar.gz
rust-7c47b1e5f4920c5a15a9bc1c744f088646b031a3.zip
Rollup merge of #77161 - est31:swich_len_already_trusted, r=petrochenkov
Remove TrustedLen requirement from BuilderMethods::switch

The main use case of TrustedLen is allowing APIs to specialize on it,
but no use of it uses that specialization. Instead, only the .len()
function provided by ExactSizeIterator is used, which is already
required to be accurate.

Thus, the TrustedLen requirement on BuilderMethods::switch is redundant.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions