diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-07-19 11:38:58 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-19 11:38:58 +0530 |
| commit | e301cd39ad62cda469034539d06819a30ee12305 (patch) | |
| tree | b66f6f06ac58e278cd8ace1dadd7ce5682dec2ca /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 415f7e1c81a88dac99d1073526d56fc02e4395e4 (diff) | |
| parent | e52837c362d00fb7672dacb30de58dd114d2811e (diff) | |
| download | rust-e301cd39ad62cda469034539d06819a30ee12305.tar.gz rust-e301cd39ad62cda469034539d06819a30ee12305.zip | |
Rollup merge of #99434 - timvermeulen:skip_next_non_fused, r=scottmcm
Fix `Skip::next` for non-fused inner iterators `iter.skip(n).next()` will currently call `nth` and `next` in succession on `iter`, without checking whether `nth` exhausts the iterator. Using `?` to propagate a `None` value returned by `nth` avoids this.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
