mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 16:39:26 +00:00
4abe815729
Add `manual_is_ascii_check` lint Addresses https://github.com/rust-lang/rust-clippy/issues/9290 This PR adds new lint `manual_is_ascii_check`, which detects comparison with ascii ranges using `matches!` macros. As I mentioned as following in the Issue; > Yes, that's true. we'll start small and then grow it. > So I'll try to handle matches! macro with single range as suggested above. However during writing first version, I was thinking that the changes to support alphabetic and digits will be small patch, so I made a single PR in hope review cost can be reduced. changelog: add new lint [`manual_is_ascii_check`] r? `@xFrednet` |
||
---|---|---|
.. | ||
test_utils | ||
ui | ||
ui-cargo | ||
ui-internal | ||
ui-toml | ||
workspace_test | ||
check-fmt.rs | ||
clippy.toml | ||
compile-test.rs | ||
dogfood.rs | ||
integration.rs | ||
lint_message_convention.rs | ||
missing-test-files.rs | ||
versioncheck.rs | ||
workspace.rs |