about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-07-01 20:36:08 -0700
committerGitHub <noreply@github.com>2020-07-01 20:36:08 -0700
commit8fcb015b442860866e39b6bda77b557d6267242e (patch)
tree07b1eafc951ee7238bc336935efade730d1989ef /src/libstd/sys/unix/stack_overflow.rs
parent441f04b56be65c9228b17adde686b0bda6d38917 (diff)
parent47425e476b8fd087799d1229a23f7aa81c1835bf (diff)
downloadrust-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