Skip to content

Fix duplicate word in core docs#6966

Merged
bors merged 2 commits into
rust-lang:incomingfrom
alco:fix-typo
Jun 6, 2013
Merged

Fix duplicate word in core docs#6966
bors merged 2 commits into
rust-lang:incomingfrom
alco:fix-typo

Conversation

@alco

@alco alco commented Jun 6, 2013

Copy link
Copy Markdown
Contributor

No description provided.

@alco

alco commented Jun 6, 2013

Copy link
Copy Markdown
Contributor Author

I've found a few more occurrences of duplicate words in the docs and comments, I will add them to this PR right now.

@alco

alco commented Jun 6, 2013

Copy link
Copy Markdown
Contributor Author

OK, I think that's it.

bors added a commit that referenced this pull request Jun 6, 2013
@bors bors closed this Jun 6, 2013
@bors bors merged commit e75572c into rust-lang:incoming Jun 6, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request May 20, 2021
…ednet

`while_let_on_iterator` Improvements

fixes: rust-lang#6491
fixes: rust-lang#6231
fixes: rust-lang#5844
fixes: rust-lang#1924
fixes: rust-lang#1033

The check for whether a field can be borrowed should probably be moved to utils at some point, but it would require some cleanup work and knowing what parts can actually be shared.

changelog: Suggest `&mut iter` when the iterator is used after the loop.
changelog: Suggest `&mut iter` when the iterator is a field in a struct.
changelog: Don't lint when the iterator is a field in a struct, and the struct is used in the loop.
changelog: Lint when the loop is nested in another loop, but suggest `&mut iter` unless the iterator is from a local declared inside the loop.
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.

2 participants