about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2018-02-23 10:24:49 -0800
committerGitHub <noreply@github.com>2018-02-23 10:24:49 -0800
commit5fd8d180977feaf6f1141fb6a992303b2c817b14 (patch)
treee025d02f841238419c3acd0a2f4456c40dba587e /src/rustllvm/RustWrapper.cpp
parent1e67c1315b6dbd88c5267354a3b29a4a25f398c7 (diff)
parent0bb818cc0b2885b01ce670ce192aac1dbc6db16a (diff)
downloadrust-5fd8d180977feaf6f1141fb6a992303b2c817b14.tar.gz
rust-5fd8d180977feaf6f1141fb6a992303b2c817b14.zip
Rollup merge of #48157 - scottmcm:try-for-each, r=dtolnay
Add Iterator::try_for_each

The fallible version of `for_each` aka the stateless version of `try_fold`.  Inspired by @cuviper's comment in https://github.com/rust-lang/rust/pull/45379#issuecomment-338370020 as a more direct and obvious solution than `.map(f).collect::<Result<(), _>>()`.

Like `for_each`, no need for an `r` version thanks to overrides in `Rev`.

`iterator_try_fold` tracking issue: https://github.com/rust-lang/rust/issues/45594
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions