mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-28 07:30:57 +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` |
||
---|---|---|
.. | ||
ast_utils | ||
mir | ||
ast_utils.rs | ||
attrs.rs | ||
check_proc_macro.rs | ||
comparisons.rs | ||
consts.rs | ||
diagnostics.rs | ||
eager_or_lazy.rs | ||
higher.rs | ||
hir_utils.rs | ||
lib.rs | ||
macros.rs | ||
msrvs.rs | ||
numeric_literal.rs | ||
paths.rs | ||
ptr.rs | ||
qualify_min_const_fn.rs | ||
source.rs | ||
str_utils.rs | ||
sugg.rs | ||
sym_helper.rs | ||
ty.rs | ||
usage.rs | ||
visitors.rs |