about summary refs log tree commit diff
path: root/src/test/codegen/iter-fold-closure-no-iterator.rs
AgeCommit message (Collapse)AuthorLines
2020-05-18Make `fold` standalone.Nicholas Nethercote-10/+0
`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.
2019-08-12Add codegen tests for the genericity of fold closuresJosh Stone-0/+10