diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-01-20 09:43:10 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2025-01-20 19:40:05 +0100 |
| commit | 0c3deeb24693cfa295701215023f87852bf34cc0 (patch) | |
| tree | 305218e786a273d795c56db870b98094fb927983 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 2280b8a09967891b6c3d2d53a001c514954489c3 (diff) | |
| download | rust-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
