diff options
| author | bors <bors@rust-lang.org> | 2021-05-13 11:49:37 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-05-13 11:49:37 +0000 |
| commit | 90fb7c4c50a91b12d000b2aa2d063f695d637246 (patch) | |
| tree | 1288a393b2ce3c8e79d5c9ed7c295ca7a4fd8ee3 /library/std/src/sys/unix/stack_overflow.rs | |
| parent | aa15a5442a975180a367373e563b7f8c626b5344 (diff) | |
| parent | cd0db8a4599619dd43af5f39834a7566d06e5b50 (diff) | |
| download | rust-90fb7c4c50a91b12d000b2aa2d063f695d637246.tar.gz rust-90fb7c4c50a91b12d000b2aa2d063f695d637246.zip | |
Auto merge of #6966 - Jarcho:while_let_on_iterator_fp, r=xFrednet
`while_let_on_iterator` Improvements fixes: #6491 fixes: #6231 fixes: #5844 fixes: #1924 fixes: #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.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
