rust/tests
bors d2ddf9c796 Auto merge of #6754 - camsteffen:spanlesseq-res, r=flip1995
Teach SpanlessEq binding IDs

changelog: Fix collapsible_match false positive

Fixes #6740

This PR changes the way `SpanlessEq` determines whether two local variables are the same. Instead of checking that the names match, it checks that the `HirId`s match. If local bindings are declared within the expressions that are being compared, `SpanlessEq` will remember bindings that correspond to each other in a `FxHashMap<HirId, HirId>`. This makes `SpanlessEq` more flexible while also fixing false positives.

Example: `{ let x = 1; x + 2 }` is equal to `{ let y = 1; y + 2 }`.

CC `@xFrednet` I think this will resolve some concerns in #6463
2021-02-21 15:22:35 +00:00
..
auxiliary
cargo Merge commit '2f6439ae6a6803d030cceb3ee14c9150e91b328b' into clippyup 2020-10-09 12:45:29 +02:00
ui Auto merge of #6754 - camsteffen:spanlesseq-res, r=flip1995 2021-02-21 15:22:35 +00:00
ui-cargo Add back publish = false to the old test. 2021-02-06 17:52:41 +01:00
ui-internal Merge commit '95c0459217d1661edfa794c8bb122452b92fb485' into clippyup 2021-01-30 18:06:34 +01:00
ui-toml Auto merge of #6650 - daxpedda:cargo-common-metadata-publish, r=flip1995 2021-02-11 09:34:44 +00: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 Special sync of 'e89801553ddbaccdeb2eac4db08900edb51ac7ff' 2020-12-23 10:57:35 +01:00
fmt.rs
integration.rs Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup 2020-12-20 17:19:49 +01:00
missing-test-files.rs Fix/allow non_fmt_panic in clippy tests. 2021-02-03 23:15:51 +01:00
versioncheck.rs tests: ignore check_that_clippy_has_the_same_major_version_as_rustc() inside the rustc repo. 2021-02-06 00:56:54 +01:00