bors 7be3a32f25 Auto merge of #6843 - Jarcho:match_on_same_arms_macro, r=Manishearth
Compare empty blocks for equality based on tokens

fixes: #1390

This only considers empty blocks for now, though we should also catch something like this:

```rust
match 0 {
    0 => {
        do_something();
        trace!(0);
        0
    }
    1 => {
        do_something();
        trace!(1);
        1
    }
    x => x,
}
```

As far as I can tell there aren't any negative effects on other lints. These blocks only happen to be the same for a given compilation, not all compilations.

changelog: Fix `match_on_same_arms` and others. Only consider empty blocks equal if the tokens contained are the same.
2021-03-04 18:23:39 +00:00
..
2021-02-26 19:13:47 -06:00
2021-02-10 16:15:29 +09:00
2021-02-10 16:15:29 +09:00
2021-02-10 16:15:29 +09:00
2021-02-27 14:16:01 +09:00
2021-02-25 22:03:11 +01:00
2021-02-10 11:57:28 +01:00
2021-02-10 11:57:28 +01:00
2021-02-10 11:57:28 +01:00
2021-03-03 17:32:49 +01:00
2021-03-03 17:32:49 +01:00
2021-02-06 00:10:52 +09:00