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:
authorNicholas Nethercote <nnethercote@mozilla.com>2020-05-14 09:39:50 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2020-05-18 05:41:59 +1000
commit4b7c3d88c6488d552214738cfb4dc0a05549a103 (patch)
tree23c081447f15d1cc890156b97cef2b514bb0005c /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent34cce58d81f006a5406fcae918db4492e6cf2784 (diff)
downloadrust-4b7c3d88c6488d552214738cfb4dc0a05549a103.tar.gz
rust-4b7c3d88c6488d552214738cfb4dc0a05549a103.zip
Make `fold` standalone.
`fold` is currently implemented via `try_fold`, but implementing it
directly results in slightly less LLVM IR being generated, speeding up
compilation of some benchmarks.

(And likewise for `rfold`.)

The commit adds `fold` implementations to all the iterators that lack
one but do have a `try_fold` implementation. Most of these just call the
`try_fold` implementation directly.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions