about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-01-20 09:43:10 +0100
committerSamuel Tardieu <sam@rfc1149.net>2025-01-20 19:40:05 +0100
commit0c3deeb24693cfa295701215023f87852bf34cc0 (patch)
tree305218e786a273d795c56db870b98094fb927983 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent2280b8a09967891b6c3d2d53a001c514954489c3 (diff)
downloadrust-0c3deeb24693cfa295701215023f87852bf34cc0.tar.gz
rust-0c3deeb24693cfa295701215023f87852bf34cc0.zip
`match_bool`: omit suggestion if guard is present
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 }`.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions