bors[bot] c0459c5357
Merge #7956
7956: Add assist to convert for_each into for loops r=Veykril a=SaiintBrisson

This PR resolves #7821.
Adds an assist to that converts an `Iterator::for_each` into a for loop: 

```rust
fn main() {
    let vec = vec![(1, 2), (2, 3), (3, 4)];
    x.iter().for_each(|(x, y)| {
        println!("x: {}, y: {}", x, y);
    })
}
```
becomes
```rust
fn main() {
    let vec = vec![(1, 2), (2, 3), (3, 4)];
    for (x, y) in x.iter() {
        println!("x: {}, y: {}", x, y);
    });
}
```

Co-authored-by: Luiz Carlos Mourão Paes de Carvalho <luizcarlosmpc@gmail.com>
Co-authored-by: Luiz Carlos <luizcarlosmpc@gmail.com>
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-03-12 14:45:04 +00:00
..
2021-01-03 14:43:29 +01:00
2021-03-02 14:27:29 +02:00
2021-03-12 06:16:04 -08:00
2021-03-12 14:45:04 +00:00
2021-03-09 22:30:58 +03:00
2021-03-10 17:06:11 +00:00
2021-03-09 22:30:58 +03:00
2021-01-22 15:38:33 +01:00
2021-03-10 04:54:31 +08:00
2021-03-09 22:30:58 +03:00
2021-01-27 12:39:19 +03:00
2021-02-05 16:09:45 +01:00
2021-03-12 14:45:04 +00:00
2021-03-08 22:19:44 +02:00
2021-01-05 02:00:46 +08:00
2021-02-12 16:31:16 +01:00