Skip to content

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants