about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-10-10 11:13:05 +0000
committerbors <bors@rust-lang.org>2021-10-10 11:13:05 +0000
commit9205e3d800c09c826d6ef6533a00d231cfce8f5a (patch)
tree440c33e5fdbe32fa8aa769609636214ea53f36fa /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent8f1555f123be0c58390679c8aa99dca9b79c1bf3 (diff)
parent1080f6c70c132ef20bf0310c1845c92f55a3d5b5 (diff)
downloadrust-9205e3d800c09c826d6ef6533a00d231cfce8f5a.tar.gz
rust-9205e3d800c09c826d6ef6533a00d231cfce8f5a.zip
Auto merge of #7800 - 1nF0rmed:no-lint-in-match-single-amp, r=llogiq
Refactor `clippy::match_ref_pats` to check for multiple reference patterns

fixes #7740

When there is only one pattern, to begin with, i.e. a single deref(`&`), then in such cases we suppress `clippy::match_ref_pats`.
This is done by checking the count of the reference pattern and emitting `clippy::match_ref_pats` when more than one pattern is present.

Removed certain errors in the `stderr` tests as they would not be triggered.

changelog: Refactor `clippy::match_ref_pats` to check for multiple reference patterns
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions