about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorA4-Tacks <wdsjxhno1001@163.com>2025-09-25 21:57:10 +0800
committerA4-Tacks <wdsjxhno1001@163.com>2025-09-25 22:00:56 +0800
commit1947949f3d7212c181049d96e2665481d3bddc6b (patch)
treec08ab9ef58ad0c9b57c6551158aa3d76ae8c6499 /compiler/rustc_codegen_llvm/src/errors.rs
parentc1cd1da668650d0e9e0f143f89a17387d96979c2 (diff)
downloadrust-1947949f3d7212c181049d96e2665481d3bddc6b.tar.gz
rust-1947949f3d7212c181049d96e2665481d3bddc6b.zip
Fix not applicable for if-expr in let-stmt
Example
---
```rust
fn main() {
    let _x = loop {
        if$0 let Ok(x) = Err(92) {
            foo(x);
        }
    };
}
```

**Before**:

Assist not applicable

**After**:

```rust
fn main() {
    let _x = loop {
        let Ok(x) = Err(92) else { continue };
        foo(x);
    };
}
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions