about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-09-20 23:57:25 +0000
committerbors <bors@rust-lang.org>2023-09-20 23:57:25 +0000
commitc55669513af7e0afaf65bd9b150fd827dc4446c2 (patch)
tree114ec151a0fd667cf3b4456f65ea93e36d2ce9fa /compiler/rustc_codegen_llvm/src/errors.rs
parentddbe1100813d75898d6cde56a498813ac5799e9d (diff)
parent558ae4c6a8a5a81c5b0cb3c7828e622201ba33ee (diff)
downloadrust-c55669513af7e0afaf65bd9b150fd827dc4446c2.tar.gz
rust-c55669513af7e0afaf65bd9b150fd827dc4446c2.zip
Auto merge of #11522 - y21:redundant_guards_pat_lhs, r=giraffate
[`redundant_guards`]: lint if the pattern is on the left side

A tiny improvement to the `redundant_guards` lint. There's no associated issue for this, just noticed it while going through the code.
Right now it warns on `Some(x) if x == 2` and suggests `Some(2)`, but it didn't do that for `Some(x) if 2 == x` (i.e. when the local is on the right side and the pattern on the left side).

changelog: [`redundant_guards`]: also lint if the pattern is on the left side
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions