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-05-26 16:52:02 +02:00
2020-05-13 20:47:44 +02:00
2020-06-01 10:20:17 +02:00
2020-04-21 21:07:43 -07:00
2020-04-21 21:07:43 -07:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-11 20:23:47 +02:00
2020-05-27 13:57:48 +02:00
2020-05-27 13:57:48 +02:00
2020-05-17 17:36:26 +02:00
2020-05-26 16:52:02 +02:00
2020-05-26 16:52:02 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-11 20:23:47 +02:00
2020-05-20 16:46:30 +03:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-04-20 15:08:44 -04:00
2020-04-20 15:47:08 -04:00
2020-04-23 16:30:06 -07:00
2020-04-23 16:30:06 -07:00
2020-04-23 16:30:06 -07:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-06-01 03:08:51 +07:00
2020-06-01 03:08:51 +07:00
2020-06-01 03:08:51 +07:00
2020-04-25 20:11:15 +02:00
2020-06-01 03:08:51 +07:00
2020-06-01 03:08:51 +07:00
2020-06-01 03:08:51 +07:00
2020-05-28 00:58:48 +02:00
2020-05-28 00:58:48 +02:00
2020-05-28 00:58:48 +02:00
2020-05-28 00:58:48 +02:00
2020-05-28 00:58:48 +02:00
2020-05-11 20:23:47 +02:00
2020-05-11 20:23:47 +02:00
2020-05-11 20:23:47 +02:00
2020-05-17 17:36:26 +02:00
2020-05-11 20:23:47 +02:00
2020-05-11 20:23:47 +02:00
2020-05-11 20:23:47 +02:00
2020-04-25 22:52:19 +02:00
2020-04-25 22:52:19 +02:00
2020-04-25 22:52:19 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-04-23 16:30:06 -07:00
2020-04-23 16:30:06 -07:00
2020-05-11 20:23:47 +02:00
2020-04-26 18:00:51 +03:00
2020-05-20 16:39:03 +03:00
2020-05-16 00:19:30 +03:00
2020-05-16 00:19:30 +03:00
2020-05-16 00:19:30 +03:00
2020-04-26 21:27:29 +02:00
2020-04-26 21:27:29 +02:00
2020-04-26 21:27:29 +02:00
2020-04-26 21:27:29 +02:00
2020-04-26 21:27:29 +02:00
2020-04-26 21:27:29 +02: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-23 16:30:06 -07:00
2020-04-25 10:43:41 +02:00
2020-05-22 11:49:51 -04:00
2020-05-22 11:49:51 -04:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-22 19:21:30 +02: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-25 23:09:06 +02:00
2020-05-20 13:25:20 +02:00
2020-05-20 13:25:20 +02:00
2020-05-20 13:25:20 +02:00
2020-04-25 23:51:30 +03:00
2020-04-25 23:51:30 +03:00
2020-04-25 23:51:30 +03:00
2020-05-25 20:06:15 +02:00
2020-05-25 20:06:15 +02:00
2020-05-25 20:06:15 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-25 20:06:15 +02:00
2020-05-25 20:06:15 +02:00
2020-05-31 19:29:36 +02:00
2020-05-31 19:29:36 +02:00
2020-05-31 19:29:36 +02:00
2020-05-31 19:29:36 +02:00
2020-04-29 22:40:57 +03:00
2020-04-29 22:40:57 +03:00
2020-05-31 15:09:12 -07:00
2020-05-31 15:09:12 -07:00
2020-05-31 15:09:12 -07:00
2020-04-19 23:26:17 +02:00
2020-04-19 23:26:17 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-04-27 21:29:31 +02:00
2020-04-27 21:29:31 +02:00
2020-05-26 18:43:12 +02:00
2020-05-26 18:43:12 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-26 18:43:12 +02:00
2020-05-30 17:52:10 +02:00
2020-05-30 17:52:10 +02:00
2020-05-11 20:23:47 +02:00
2020-05-11 20:23:47 +02:00
2020-05-11 20:23:47 +02:00
2020-05-11 20:23:47 +02:00
2020-05-11 20:23:47 +02:00
2020-05-11 20:23:47 +02:00