bors[bot] b3c848ee28
Merge #7703
7703: Allow comments between newlines in chaining hints r=Veykril a=unratito

Currently, chaining hints are not generated if there are comments between newlines, which is a very common pattern:

```rust
let vec = (0..10)
    // Multiply by 2
    .map(|x| x * 2)
    // Add 3
    .map(|x| x + 3)
    .collect::<Vec<i32>>();
```

Besides, it seems a bit weird that this piece of code generates a chaining hint:

```rust
let vec = (0..10)



    .collect::<Vec<i32>>();
```

But this one doesn't:

```rust
let vec = (0..10)

    // This is a comment

    .collect::<Vec<i32>>();
```


Co-authored-by: Paco Soberón <unratito@gmail.com>
2021-02-17 01:24:25 +00:00
..
2021-02-16 14:01:09 +00:00
2021-01-03 14:43:29 +01:00
2021-02-11 19:52:46 +01:00
2021-02-13 22:04:52 +03:00
2021-02-11 19:52:33 +01:00
2021-01-27 12:39:19 +03:00
2021-02-11 19:52:33 +01:00
2021-02-15 18:33:12 +01:00
2021-01-22 15:38:33 +01:00
2021-02-05 16:57:26 +01:00
2021-01-27 12:39:19 +03:00
2021-02-16 18:24:28 +00:00
.
2021-01-20 01:56:11 +03:00
2021-02-05 16:09:45 +01:00
2021-02-16 14:16:47 +00:00
2021-02-09 21:52:34 +03:00
2021-01-05 02:00:46 +08:00
2021-02-12 16:31:16 +01:00