rust-clippy/tests
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
..
auxiliary Remove all copyright license headers 2019-01-08 21:46:39 +01:00
cargo Merge commit '2f6439ae6a6803d030cceb3ee14c9150e91b328b' into clippyup 2020-10-09 12:45:29 +02:00
ui Auto merge of #6843 - Jarcho:match_on_same_arms_macro, r=Manishearth 2021-03-04 18:23:39 +00:00
ui-cargo Add back publish = false to the old test. 2021-02-06 17:52:41 +01:00
ui-internal Move declare_clippy_lint back into clippy_lints 2021-02-23 18:50:30 -05:00
ui-toml Add version = "Two" to rustfmt.toml 2021-03-01 16:17:33 -06:00
compile-test.rs Upgrade compiletest-rs to 0.6 and tester to 0.9 2021-02-15 20:13:44 +01:00
dogfood.rs Add package arguments to dogfood test 2021-02-26 12:12:33 -06:00
fmt.rs Merge commit '3d0b0e66afdfaa519d8855b338b35b4605775945' into clippyup 2020-08-28 18:43:25 +02:00
integration.rs Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup 2020-12-20 17:19:49 +01:00
lint_message_convention.rs Add version = "Two" to rustfmt.toml 2021-03-01 16:17:33 -06:00
missing-test-files.rs Fix/allow non_fmt_panic in clippy tests. 2021-02-03 23:15:51 +01:00
versioncheck.rs Revert "Fix versioncheck test" 2021-02-26 12:30:43 -06:00