Skip to content

fix: complete postfix let in conditions#21557

Merged
ChayimFriedman2 merged 1 commit intorust-lang:masterfrom
A4-Tacks:let-postfix-in-cond
Feb 3, 2026
Merged

fix: complete postfix let in conditions#21557
ChayimFriedman2 merged 1 commit intorust-lang:masterfrom
A4-Tacks:let-postfix-in-cond

Conversation

@A4-Tacks
Copy link
Member

Easy to input other patterns, or bind variable in let-chain

Example

fn main() {
    let bar = 2;
    if bar.$0
}

Before this PR

No complete 'let'

After this PR

fn main() {
    let bar = 2;
    if let $1 = bar
}

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 30, 2026
Easy to input other patterns, or bind variable in let-chain

Example
---
```rust
fn main() {
    let bar = 2;
    if bar.$0
}
```

**Before this PR**

No complete 'let'

**After this PR**

```rust
fn main() {
    let bar = 2;
    if let $1 = bar
}
```
@A4-Tacks A4-Tacks force-pushed the let-postfix-in-cond branch from 9a53db1 to f13c3d2 Compare January 30, 2026 22:04
@ChayimFriedman2 ChayimFriedman2 added this pull request to the merge queue Feb 3, 2026
Merged via the queue into rust-lang:master with commit 631e3ab Feb 3, 2026
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 3, 2026
@A4-Tacks A4-Tacks deleted the let-postfix-in-cond branch February 3, 2026 09:48
@lnicola lnicola changed the title feat: fallback let postfix completions in condition fix: complete postfix let in conditions Feb 9, 2026
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