diff options
| author | bors <bors@rust-lang.org> | 2022-11-08 09:20:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-11-08 09:20:52 +0000 |
| commit | 4abe815729847303c9729df76d0f3166fe7ae2fb (patch) | |
| tree | 01209c7ae9e9857c6e7b2dad9889a6173012af23 /tests/debuginfo/enum-thinlto.rs | |
| parent | 5857a0174249bd5a9c0daeb4a9fde4a3601d7303 (diff) | |
| parent | e4540ad65fa14ceebd5145ab771fe4918d170bf1 (diff) | |
| download | rust-4abe815729847303c9729df76d0f3166fe7ae2fb.tar.gz rust-4abe815729847303c9729df76d0f3166fe7ae2fb.zip | |
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`
Diffstat (limited to 'tests/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
