diff options
| author | bors <bors@rust-lang.org> | 2023-09-20 23:57:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-09-20 23:57:25 +0000 |
| commit | c55669513af7e0afaf65bd9b150fd827dc4446c2 (patch) | |
| tree | 114ec151a0fd667cf3b4456f65ea93e36d2ce9fa /compiler/rustc_llvm/llvm-wrapper/Linker.cpp | |
| parent | ddbe1100813d75898d6cde56a498813ac5799e9d (diff) | |
| parent | 558ae4c6a8a5a81c5b0cb3c7828e622201ba33ee (diff) | |
| download | rust-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_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions
