about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/json.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-08-08 18:44:48 +0000
committerbors <bors@rust-lang.org>2020-08-08 18:44:48 +0000
commit70c46de012fe73fb57662085c02ef921e2e5b93c (patch)
tree5466073df97f12f2c8a68fd0f75fd3fb0d953c1f /src/test/rustdoc-ui/coverage/json.rs
parent3899d6001ce8a876bd82b34253240251167c84ac (diff)
parent888657e09a2133fc105382136f61915086144e3f (diff)
downloadrust-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