about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorllogiq <bogusandre@gmail.com>2025-01-22 17:35:33 +0000
committerGitHub <noreply@github.com>2025-01-22 17:35:33 +0000
commit106db265f42cef77ebb0351cfa34a379428f82b6 (patch)
tree2e206f35a6ccd09e54eaaeba1c4f42d3cb9a1ca8 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentc024c1327bfd0540a0c85e62df1f1527f05fe03f (diff)
parent0c3deeb24693cfa295701215023f87852bf34cc0 (diff)
downloadrust-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/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions