mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 01:17:16 +00:00
Rollup merge of #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.
This commit is contained in:
commit
eff879311d
1 changed files with 1 additions and 1 deletions
|
@ -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" => {},
|
||||
| ~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
Loading…
Reference in a new issue