Skip to content

Only trigger infinite_iter lint for infinitely allocating collect() calls #3607

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

Merged
merged 1 commit into from
Jan 3, 2019

Conversation

detrumi
Copy link
Member

@detrumi detrumi commented Dec 31, 2018

Fixes #3538

Oh, I guess this should actually check other methods like count as well, not only collect().
Never mind, collect is the only of these functions that allocates a data structure.

@detrumi detrumi force-pushed the limit_infinite_iter_to_known_types branch from 4515fc7 to 66acaa9 Compare December 31, 2018 12:09
@detrumi detrumi force-pushed the limit_infinite_iter_to_known_types branch from 66acaa9 to f38fb56 Compare December 31, 2018 12:38
@flip1995 flip1995 added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Dec 31, 2018
@phansch
Copy link
Member

phansch commented Jan 2, 2019

@bors r+ thanks!

@bors
Copy link
Contributor

bors commented Jan 2, 2019

📌 Commit f38fb56 has been approved by phansch

bors added a commit that referenced this pull request Jan 2, 2019
…hansch

Only trigger `infinite_iter` lint for infinitely allocating `collect()` calls

Fixes  #3538

~Oh, I guess this should actually check other methods like `count` as well, not only `collect()`.~
Never mind, `collect` is the only of these functions that allocates a data structure.
@bors
Copy link
Contributor

bors commented Jan 2, 2019

⌛ Testing commit f38fb56 with merge 8fa1c9a...

@phansch phansch removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jan 2, 2019
@bors
Copy link
Contributor

bors commented Jan 2, 2019

💥 Test timed out

@phansch
Copy link
Member

phansch commented Jan 2, 2019

@bors retry (AppVeyor timeout)

@bors
Copy link
Contributor

bors commented Jan 3, 2019

⌛ Testing commit f38fb56 with merge 84aa027...

bors added a commit that referenced this pull request Jan 3, 2019
…hansch

Only trigger `infinite_iter` lint for infinitely allocating `collect()` calls

Fixes  #3538

~Oh, I guess this should actually check other methods like `count` as well, not only `collect()`.~
Never mind, `collect` is the only of these functions that allocates a data structure.
@bors
Copy link
Contributor

bors commented Jan 3, 2019

☀️ Test successful - status-appveyor, status-travis
Approved by: phansch
Pushing 84aa027 to master...

@bors bors merged commit f38fb56 into rust-lang:master Jan 3, 2019
@detrumi detrumi deleted the limit_infinite_iter_to_known_types branch January 3, 2019 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants