about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorJason Newcomb <jsnewcomb@pm.me>2021-03-24 09:32:29 -0400
committerJason Newcomb <jsnewcomb@pm.me>2021-05-12 21:49:22 -0400
commitdaca50a515f28218142d9945ca714f7420b4fc75 (patch)
tree2489e7791ccad51b15ce02ff532a4da0c268182c /src/test/incremental/thinlto
parentaa15a5442a975180a367373e563b7f8c626b5344 (diff)
downloadrust-daca50a515f28218142d9945ca714f7420b4fc75.tar.gz
rust-daca50a515f28218142d9945ca714f7420b4fc75.zip
Improvements to `while_let_on_iterator`
* Suggest `&mut iter` when the iterator is used after the loop.
* Suggest `&mut iter` when the iterator is a field in a struct.
* Don't lint when the iterator is a field in a struct, and the struct is
used in the loop.
* 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 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions