about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-06-11 22:15:43 +0000
committerbors <bors@rust-lang.org>2024-06-11 22:15:43 +0000
commit740b72ef79f1453c1ef76af3b58e13e10fcb32de (patch)
tree45cd45be3c5abb9dd08c8feef7c90869cc1d4ccc /compiler/rustc_codegen_llvm/src
parent9ddea51a7369344519dd5855f2e04294fdc613c4 (diff)
parentc86b19f1ef262eeb1992a91879b38ffbed07a1a7 (diff)
downloadrust-740b72ef79f1453c1ef76af3b58e13e10fcb32de.tar.gz
rust-740b72ef79f1453c1ef76af3b58e13e10fcb32de.zip
Auto merge of #12849 - AurelienFT:manual-char-comparison-pattern, r=Alexendoo
Add lint to check manual pattern char comparison

This PR adds a new lint asked in https://github.com/rust-lang/rust-clippy/issues/12490

This lint catches manual char comparison in pattern of string functions and propose to use `char` or array of `char` instead.

As it's my first contribution i'm not feeling very safe about not matching too much or missing some cases.

Thanks in advance for taking time to review and propose feedback !

changelog: new lint [`manual_pattern_char_comparison`]
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions