Skip to content

Commit eff8793

Browse files
Rollup merge of rust-lang#121107 - estebank:capitalization-suggestion, r=michaelwoerister
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.
2 parents b3b9f31 + ad7914f commit eff8793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ui/match_str_case_mismatch.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ error: this `match` arm has a differing case than its expression
1717
LL | "~!@#$%^&*()-_=+Foo" => {},
1818
| ^^^^^^^^^^^^^^^^^^^^
1919
|
20-
help: consider changing the case of this arm to respect `to_ascii_lowercase`
20+
help: consider changing the case of this arm to respect `to_ascii_lowercase` (notice the capitalization difference)
2121
|
2222
LL | "~!@#$%^&*()-_=+foo" => {},
2323
| ~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)