diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2025-08-01 00:38:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-01 00:38:20 -0400 |
| commit | 1b39c3590c4d60fc4578dedfa779c7efbf60a17b (patch) | |
| tree | 8cd595a94e1fbd5bdd3eebc1634a5e21d85aa408 /tests | |
| parent | 0f810ac2c383b14b2e6a79561e468bd7a0bc5f05 (diff) | |
| parent | d7b7e236e74f45bdef7e082ac361b699abac20a2 (diff) | |
| download | rust-1b39c3590c4d60fc4578dedfa779c7efbf60a17b.tar.gz rust-1b39c3590c4d60fc4578dedfa779c7efbf60a17b.zip | |
Rollup merge of #144691 - xizheyin:suggest-confuse, r=estebank
Extend `is_case_difference` to handle digit-letter confusables This PR extends `is_case_difference` to handle digit-letter confusables Add support for detecting 0/O, 1/l, 5/S, 8/B, 9/g confusables in error suggestions. r? `@estebank`
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/match_str_case_mismatch.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/match_str_case_mismatch.stderr b/tests/ui/match_str_case_mismatch.stderr index 8068edfff94..c2b58b952aa 100644 --- a/tests/ui/match_str_case_mismatch.stderr +++ b/tests/ui/match_str_case_mismatch.stderr @@ -18,7 +18,7 @@ error: this `match` arm has a differing case than its expression LL | "~!@#$%^&*()-_=+Foo" => {}, | ^^^^^^^^^^^^^^^^^^^^ | -help: consider changing the case of this arm to respect `to_ascii_lowercase` (notice the capitalization difference) +help: consider changing the case of this arm to respect `to_ascii_lowercase` (notice the capitalization) | LL - "~!@#$%^&*()-_=+Foo" => {}, LL + "~!@#$%^&*()-_=+foo" => {}, |
