diff options
| author | A4-Tacks <wdsjxhno1001@163.com> | 2025-08-14 10:05:11 +0800 |
|---|---|---|
| committer | A4-Tacks <wdsjxhno1001@163.com> | 2025-08-14 10:07:25 +0800 |
| commit | c78177b7f93c9b691a9b8365eaba9c8d11df4cd0 (patch) | |
| tree | fc02b954267bf560d112662d81c771432a38cdd7 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | e52666380f6f03fb1211138171e0ef626ceb468d (diff) | |
| download | rust-c78177b7f93c9b691a9b8365eaba9c8d11df4cd0.tar.gz rust-c78177b7f93c9b691a9b8365eaba9c8d11df4cd0.zip | |
Add guard to let-chain for replace_match_with_if_let
```rust
fn main() {
match$0 Some(0) {
Some(n) if n % 2 == 0 && n != 6 => (),
_ => code(),
}
}
```
->
```rust
fn main() {
if let Some(n) = Some(0) && n % 2 == 0 && n != 6 {
()
} else {
code()
}
}
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
