Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ICE in loops module #5877

Merged
merged 1 commit into from
Aug 8, 2020
Merged

Fix ICE in loops module #5877

merged 1 commit into from
Aug 8, 2020

Conversation

ebroto
Copy link
Member

@ebroto ebroto commented Aug 8, 2020

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

@rust-highfive
Copy link

r? @Manishearth

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 8, 2020
Copy link
Member

@flip1995 flip1995 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@flip1995 flip1995 added S-waiting-on-bors Status: The marked PR was approved and is only waiting bors and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties labels Aug 8, 2020
@Manishearth
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Aug 8, 2020

📌 Commit 888657e has been approved by Manishearth

@bors
Copy link
Contributor

bors commented Aug 8, 2020

⌛ Testing commit 888657e with merge 70c46de...

@bors
Copy link
Contributor

bors commented Aug 8, 2020

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Manishearth
Pushing 70c46de to master...

@bors bors merged commit 70c46de into rust-lang:master Aug 8, 2020
@ebroto ebroto deleted the 5872_loops_ice branch August 8, 2020 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: The marked PR was approved and is only waiting bors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

internal error: entered unreachable code
5 participants