Skip to content

Conversation

@A4-Tacks
Copy link
Member

Example

fn f() {
    if $0foo.bar() {}
}

Before this PR

"let" not in completion list

After this PR

fn f() {
    if let $1 = $0foo.bar() {}
}

Example
---
```rust
fn f() {
    if $0foo.bar() {}
}
```

**Before this PR**

"let" not in completion list

**After this PR**

```rust
fn f() {
    if let $1 = $0foo.bar() {}
}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 25, 2025
Copy link
Member

@Veykril Veykril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@Veykril Veykril added this pull request to the merge queue Oct 26, 2025
Merged via the queue into rust-lang:master with commit bb21f0b Oct 26, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 26, 2025
@lnicola lnicola changed the title Fix not complete let before expr in condition fix: complete let before expression in if Oct 26, 2025
@A4-Tacks A4-Tacks deleted the left-side-in-cond branch October 26, 2025 09:27
mendelsshop pushed a commit to mendelsshop/rust-analyzer that referenced this pull request Oct 27, 2025
Fix not complete `let` before expr in condition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants