Skip to content

rustc: add a lint for for, suggesting foreach or do. #8187

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

Closed
wants to merge 1 commit into from

Conversation

huonw
Copy link
Member

@huonw huonw commented Aug 1, 2013

This is just to aid the transistion to the new for loop, by
pointing at each location where the old one occurs.

This is just to aid the transistion to the new `for` loop, by
pointing at each location where the old one occurs.
@huonw
Copy link
Member Author

huonw commented Aug 1, 2013

@thestinger r?

@thestinger
Copy link
Contributor

Landing as part of #8190.

@thestinger thestinger closed this Aug 1, 2013
@huonw huonw deleted the for-lint branch December 4, 2014 02:02
flip1995 pushed a commit to flip1995/rust that referenced this pull request Dec 30, 2021
Fixed issues with to_radians and to_degrees lints

fixes rust-lang#7651

I fixed the original problem as described in the issue, but the bug remains for complex expressions (the commented out TC I added is an example). I would also love some feedback on how to cleanup my code and reduce duplication. I hope it's not a problem that the issue has been claimed by someone else - that was over two months ago.

changelog: ``[`suboptimal_flops`]`` no longer proposes broken code with `to_radians` and `to_degrees`
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.

3 participants