bors 70c46de012 Auto merge of #5877 - ebroto:5872_loops_ice, r=Manishearth
Fix ICE in `loops` module

changelog: Fix ICE related to `needless_collect` when a call to `iter()` was not present.

I went for restoring the old suggestion of `next().is_some()` over `get(0).is_some()` given that `iter()` is not necessarily present (could be e.g. `into_iter()` or `iter_mut()`)  and that the old suggestion could change semantics, e.g. a call to `filter()` could be present between `iter()` and the collect part.

Fixes #5872
2020-08-08 18:44:48 +00:00
..
2020-08-08 18:13:43 +02:00
2020-06-10 01:35:47 +00:00
2020-08-02 23:20:00 +08:00
2020-07-31 00:28:21 +03:00
2020-07-31 00:28:21 +03:00
2020-07-31 00:28:21 +03:00
2020-08-08 18:13:43 +02:00
2020-08-08 18:13:43 +02:00
2020-07-10 07:39:28 -04:00