diff options
| author | kennytm <kennytm@gmail.com> | 2019-03-02 14:55:06 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2019-03-02 22:58:11 +0800 |
| commit | 2e82d11de1709efe1b89ef73e71550c8fe28b7dd (patch) | |
| tree | 29f84e662598a0ca15f496f273549011478b6467 /src/rustllvm/RustWrapper.cpp | |
| parent | d987b46bd7e81eb761a06252efb35b6d932a62f5 (diff) | |
| parent | 88bd624a88692dd4bbda5f3f324f0035dc041534 (diff) | |
| download | rust-2e82d11de1709efe1b89ef73e71550c8fe28b7dd.tar.gz rust-2e82d11de1709efe1b89ef73e71550c8fe28b7dd.zip | |
Rollup merge of #58730 - timvermeulen:internal_iteration, r=scottmcm
Have all methods of Filter and FilterMap use internal iteration
This PR changes `Filter::{next, next_back, count}` and `FilterMap::{next, next_back}` to all use internal iteration. The `next` and `next_back` methods are changed to directly forward to `try_for_each` and `try_rfold` respectively, using `Result` as the `Try` type. I think that's okay? Alternatively, I could change their implementations to use `LoopState` instead if there's any benefit in doing so.
r? @scottmcm
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
