about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-28 12:41:14 +0000
committerbors <bors@rust-lang.org>2024-05-28 12:41:14 +0000
commitda4b2127c0a144699b946eec3c8c9d4fd7050c17 (patch)
treee134e12b99b900a950a191f75a72bdb90bb0f401 /compiler/rustc_pattern_analysis/src/errors.rs
parent76eee82e79e736c4cef6ee9f755f58e752b9f58a (diff)
parent7110f471d305313b0ef12f66c2db3acc3c822851 (diff)
downloadrust-da4b2127c0a144699b946eec3c8c9d4fd7050c17.tar.gz
rust-da4b2127c0a144699b946eec3c8c9d4fd7050c17.zip
Auto merge of #12859 - cookie-s:dedup-single-char-name-diag, r=Alexendoo
[`many_single_char_names`]: Deduplicate diagnostics

Relates to #12379

Fix `many_single_char_names` lint so that it doesn't emit diagnostics when the current level of the scope doesn't contain any single character name.

```rust
let (a, b, c, d): (i32, i32, i32, i32);
match 1 {
  1 => (),
  e => {},
}
```
produced the exact same MANY_SINGLE_CHAR_NAMES diagnostic at each of the Arm `e => {}` and the Block `{}`.

---

changelog: [`many_single_char_names`]: Fix duplicate diagnostics
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions