diff options
| author | bors <bors@rust-lang.org> | 2020-08-08 18:44:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-08-08 18:44:48 +0000 |
| commit | 70c46de012fe73fb57662085c02ef921e2e5b93c (patch) | |
| tree | 5466073df97f12f2c8a68fd0f75fd3fb0d953c1f /src/test/rustdoc-ui/coverage/json.rs | |
| parent | 3899d6001ce8a876bd82b34253240251167c84ac (diff) | |
| parent | 888657e09a2133fc105382136f61915086144e3f (diff) | |
| download | rust-70c46de012fe73fb57662085c02ef921e2e5b93c.tar.gz rust-70c46de012fe73fb57662085c02ef921e2e5b93c.zip | |
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
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions
