diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2020-07-01 20:36:08 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-01 20:36:08 -0700 |
| commit | 8fcb015b442860866e39b6bda77b557d6267242e (patch) | |
| tree | 07b1eafc951ee7238bc336935efade730d1989ef /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 441f04b56be65c9228b17adde686b0bda6d38917 (diff) | |
| parent | 47425e476b8fd087799d1229a23f7aa81c1835bf (diff) | |
| download | rust-8fcb015b442860866e39b6bda77b557d6267242e.tar.gz rust-8fcb015b442860866e39b6bda77b557d6267242e.zip | |
Rollup merge of #73910 - cuviper:while-indexing, r=oli-obk
Rewrite a few manual index loops with while-let
There were a few instances of this pattern:
```rust
while index < vec.len() {
let item = &vec[index];
// ...
}
```
These can be indexed at once:
```rust
while let Some(item) = vec.get(index) {
// ...
}
```
Particularly in `ObligationForest::process_obligations`, this mitigates
a codegen regression found with LLVM 11 (#73526).
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
