about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-07-19 11:38:58 +0530
committerGitHub <noreply@github.com>2022-07-19 11:38:58 +0530
commite301cd39ad62cda469034539d06819a30ee12305 (patch)
treeb66f6f06ac58e278cd8ace1dadd7ce5682dec2ca /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent415f7e1c81a88dac99d1073526d56fc02e4395e4 (diff)
parente52837c362d00fb7672dacb30de58dd114d2811e (diff)
downloadrust-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