bors f760d77bdb 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()`
2020-06-02 11:42:22 +00:00
..
2020-04-20 15:47:08 -04:00
2020-06-01 03:08:51 +07:00
2020-06-01 03:08:51 +07:00
2020-04-23 16:30:06 -07:00
2020-04-26 18:00:51 +03:00
2020-05-22 19:21:30 +02:00
2020-05-25 21:41:28 +02:00
2020-05-25 21:41:19 +02:00
2020-05-31 19:29:36 +02:00
2020-05-31 19:29:36 +02:00