diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-02-14 19:18:28 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-02-14 20:15:13 +0000 |
| commit | ad7914f2e1122e12b82993c180043fe0d734c62e (patch) | |
| tree | dccbd94b6a4dcc2ae2ac2c6401ddec924d41b463 | |
| parent | 41227f964a5c75abeeb0a5d43c920275dffd9921 (diff) | |
| download | rust-ad7914f2e1122e12b82993c180043fe0d734c62e.tar.gz rust-ad7914f2e1122e12b82993c180043fe0d734c62e.zip | |
Fix msg for verbose suggestions with confusable capitalization
When encountering a verbose/multipart suggestion that has changes that are only caused by different capitalization of ASCII letters that have little differenciation, expand the message to highlight that fact (like we already do for inline suggestions). The logic to do this was already present, but implemented incorrectly.
| -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 f799a4698b9..b178fb7512c 100644 --- a/tests/ui/match_str_case_mismatch.stderr +++ b/tests/ui/match_str_case_mismatch.stderr @@ -17,7 +17,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` +help: consider changing the case of this arm to respect `to_ascii_lowercase` (notice the capitalization difference) | LL | "~!@#$%^&*()-_=+foo" => {}, | ~~~~~~~~~~~~~~~~~~~~ |
