about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-06-02 11:42:22 +0000
committerbors <bors@rust-lang.org>2020-06-02 11:42:22 +0000
commitf760d77bdb2bff46f284500f77ecc697dd8507c5 (patch)
tree165f0ef977d0ad29157d774e6456a06e2e6aedc6 /library/std/src/sys/unix/stack_overflow.rs
parentbfafb8e0d61fd55bf72e11babefee76d17006367 (diff)
parent32fde0b5116b3a1115d11c49a9bf2af2ebdd5773 (diff)
downloadrust-f760d77bdb2bff46f284500f77ecc697dd8507c5.tar.gz
rust-f760d77bdb2bff46f284500f77ecc697dd8507c5.zip
Auto merge of #5597 - esamudera:slice_iter_next, r=flip1995
New lint: iter_next_slice

Hello, this is a work-in-progress PR for issue: https://github.com/rust-lang/rust-clippy/issues/5572

I have implemented lint to replace `iter().next()` for `slice[index..]` and `array` with `get(index)` and `get(0)` respectively. However since I made a lot of changes, I would like to request some feedback before continuing so that I could fix mistakes.

Thank you!

---

changelog: implement `iter_next_slice` lint and test, and modify `needless_continues`, `for_loop_over_options_result` UI tests since they have `iter().next()`
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions