rust-clippy/clippy_lints/src/loops
bors 07217e3370 Auto merge of #7262 - Jarcho:while_let_on_iter_closure, r=xFrednet,flip1995
fix `while_let_on_iterator` suggestion in a closure

fixes: #7249

A future improvement would be to check if the closure is being used as `FnOnce`, in which case the original suggestion would be correct.

changelog: Suggest `&mut iter` inside a closure for `while_let_on_iterator`
2021-06-08 15:52:40 +00:00
..
empty_loop.rs Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup 2021-03-25 19:29:11 +01:00
explicit_counter_loop.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
explicit_into_iter_loop.rs Fix explicit_into_iter_loop 2021-04-06 12:12:32 -04:00
explicit_iter_loop.rs Add semicolons up to needless_for_each.rs 2021-05-25 00:54:50 +00:00
for_kv_map.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
for_loops_over_fallibles.rs Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup 2021-03-25 19:29:11 +01:00
iter_next_loop.rs Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup 2021-03-25 19:29:11 +01:00
manual_flatten.rs Introduce is_lang_ctor 2021-04-06 15:05:00 -05:00
manual_memcpy.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
mod.rs Fix explicit_into_iter_loop 2021-04-06 12:12:32 -04:00
mut_range_bound.rs Add semicolons up to needless_for_each.rs 2021-05-25 00:54:50 +00:00
needless_collect.rs Simplify collect expr_ty 2021-05-27 20:54:56 -05:00
needless_range_loop.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-04-08 17:36:41 +02:00
never_loop.rs Eat dogfood 2021-04-16 11:39:31 -05:00
same_item_push.rs Fix same_item_push.rs 2021-05-25 02:03:31 +00:00
single_element_loop.rs extend single_element_loop to match .iter() 2021-04-26 15:58:58 +02:00
utils.rs Add semicolons up to needless_for_each.rs 2021-05-25 00:54:50 +00:00
while_immutable_condition.rs Remove clippy_utils::consts re-export 2021-05-27 08:52:10 -05:00
while_let_loop.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
while_let_on_iterator.rs Suggest &mut iter inside a closure for while_let_on_iterator 2021-05-21 12:27:40 -04:00