rust-clippy/clippy_utils/src
bors 4abe815729 Auto merge of #9765 - koka831:feat/manual_is_ascii_check, r=xFrednet
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`
2022-11-08 09:20:52 +00:00
..
ast_utils Merge commit '928e72dd10749875cbd412f74bfbfd7765dbcd8a' into clippyup 2021-02-25 11:25:22 +01:00
mir Fix bug in referent_used_exactly_once 2022-10-12 09:21:08 -04:00
ast_utils.rs Rename AssocItemKind::TyAlias to AssocItemKind::Type 2022-10-10 02:31:37 +00:00
attrs.rs Fix adjacent code 2022-10-07 05:07:44 -04:00
check_proc_macro.rs ImplItemKind::TyAlias => ImplItemKind::Type 2022-10-09 07:09:57 +00:00
comparisons.rs Merge commit '928e72dd10749875cbd412f74bfbfd7765dbcd8a' into clippyup 2021-02-25 11:25:22 +01:00
consts.rs Fix dogfooding 2022-10-24 22:05:39 +02:00
diagnostics.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
eager_or_lazy.rs Don't suggest moving tuple structs with a significant drop to late evaluation. 2022-10-08 11:23:05 -04:00
higher.rs Merge commit 'd9ddce8a223cb9916389c039777b6966ea448dc8' into clippyup 2022-06-04 13:34:07 +02:00
hir_utils.rs Fix dogfooding 2022-10-24 22:05:39 +02:00
lib.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
macros.rs Add unused_format_specs lint 2022-10-17 11:36:05 +00:00
msrvs.rs feat: implement manual_is_ascii_check lint 2022-11-07 16:39:36 +09:00
numeric_literal.rs [unnecessary_cast] Do not lint negative hexadecimal literals when cast as float 2022-10-08 16:15:18 +02:00
paths.rs feat: add new lint seek_from_current 2022-10-25 12:26:06 +09:00
ptr.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
qualify_min_const_fn.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
source.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
str_utils.rs Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup 2021-12-30 15:10:43 +01:00
sugg.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
sym_helper.rs Merge commit '928e72dd10749875cbd412f74bfbfd7765dbcd8a' into clippyup 2021-02-25 11:25:22 +01:00
ty.rs Lint needless_collect on non-std collection types 2022-11-07 14:14:04 -05:00
usage.rs Change InferCtxtBuilder from enter to build 2022-10-07 07:10:40 -05:00
visitors.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00