rust/tests
bors cb0132d209 Auto merge of #7865 - Herschel:fix-match-str-case-mismatch, r=xFrednet
Fix `match_str_case_mismatch` on uncased chars

False positives would result because `char::is_lowercase` and friends will return `false` for non-alphabetic chars and alphabetic chars lacking case (such as CJK scripts). Care also has to be taken for handling titlecase characters (`Dz`) and lowercased chars with no uppercase equivalent (`ʁ`).

For example, when verifying lowercase:
 * Check `!any(char::is_ascii_uppercase)` instead of `all(char::is_ascii_lowercase)` for ASCII.
 * Check that `all(|c| c.to_lowercase() == c)` instead of `all(char::is_lowercase)` for non-ASCII

Fixes #7863.

changelog: Fix false positives in [`match_str_case_mismatch`] on uncased characters
2021-10-25 21:34:11 +00:00
..
cargo Merge commit 'cb7915b00c' into clippyup 2021-09-28 18:03:12 +01:00
ui Auto merge of #7865 - Herschel:fix-match-str-case-mismatch, r=xFrednet 2021-10-25 21:34:11 +00:00
ui-cargo Merge commit '27afd6ade4' into clippyup 2021-09-08 16:31:47 +02:00
ui-internal Merge remote-tracking branch 'upstream/master' into rustup 2021-10-21 12:18:12 +02:00
ui-toml Merge remote-tracking branch 'upstream/master' into rustup 2021-10-21 12:18:12 +02:00
ui_test avoid eq_op in test code 2021-10-19 21:02:30 +02:00
clippy.toml Merge commit '3ae8faff4d' into clippyup 2021-06-03 08:41:37 +02:00
compile-test.rs avoid eq_op in test code 2021-10-19 21:02:30 +02:00
dogfood.rs Merge commit 'cb7915b00c' into clippyup 2021-09-28 18:03:12 +01:00
fmt.rs Merge commit '27afd6ade4' into clippyup 2021-09-08 16:31:47 +02:00
integration.rs Merge commit 'cb7915b00c' into clippyup 2021-09-28 18:03:12 +01:00
lint_message_convention.rs Merge commit '27afd6ade4' into clippyup 2021-09-08 16:31:47 +02:00
missing-test-files.rs Merge commit '27afd6ade4' into clippyup 2021-09-08 16:31:47 +02:00
versioncheck.rs Merge commit '27afd6ade4' into clippyup 2021-09-08 16:31:47 +02:00