diff options
| author | llogiq <bogusandre@gmail.com> | 2025-01-22 17:35:33 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-22 17:35:33 +0000 |
| commit | 106db265f42cef77ebb0351cfa34a379428f82b6 (patch) | |
| tree | 2e206f35a6ccd09e54eaaeba1c4f42d3cb9a1ca8 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | c024c1327bfd0540a0c85e62df1f1527f05fe03f (diff) | |
| parent | 0c3deeb24693cfa295701215023f87852bf34cc0 (diff) | |
| download | rust-106db265f42cef77ebb0351cfa34a379428f82b6.tar.gz rust-106db265f42cef77ebb0351cfa34a379428f82b6.zip | |
`match_bool`: fix suggestion if guard is present (#14039)
Without this check, the lint would suggest that
```rust
match test {
true if option == 5 => 10,
_ => 1,
};
```
is replaced by `if test { 10 } else { 1 }`.
changelog: [`match_bool`]: omit suggestion when guards are present in
`match` expression
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
