rust-analyzer/crates/ide-completion/src
A4-Tacks d42c81e8d1
Fix extra semicolon before else in let-stmt
Example
---
```rust
fn main() {
    let x = if true {
        ()
    } $0 else {};
}
```

**Before this PR**:

```rust
fn main() {
    let x = if true {
        ()
    } else if $1 {
        $0
    }; else {};
}
```

**After this PR**:

```rust
fn main() {
    let x = if true {
        ()
    } else if $1 {
        $0
    } else {};
}
```
2025-09-12 20:56:59 +08:00
..
completions Fix extra semicolon before else in let-stmt 2025-09-12 20:56:59 +08:00
context Fix extra semicolon before else in let-stmt 2025-09-12 20:56:59 +08:00
render cargo clippy --fix 2025-07-31 10:55:10 +02:00
tests Merge pull request #20620 from A4-Tacks/let-else-completion 2025-09-08 06:03:00 +00:00
completions.rs cargo clippy --fix 2025-07-31 10:55:10 +02:00
config.rs cargo fmt 2025-03-15 21:32:01 +01:00
context.rs Add allow else keyword completion in LetStmt 2025-09-06 13:09:07 +08:00
item.rs Merge Trait and TraitAlias handling 2025-08-13 15:28:08 +08:00
lib.rs Auto-attach database in Analysis calls 2025-08-18 09:52:23 +02:00
render.rs Merge Trait and TraitAlias handling 2025-08-13 15:28:08 +08:00
snippet.rs Allow crate authors to control completion of their things 2025-03-27 14:01:26 +02:00
tests.rs Auto-attach database in Analysis calls 2025-08-18 09:52:23 +02:00