Skip to content

Conversation

A4-Tacks
Copy link
Contributor

@A4-Tacks A4-Tacks commented Sep 23, 2025

Unwrap the tuple destructuration assignment to different variables.

Close #20715

Example

fn foo() {
    let (a, b);
    (a, b) $0= (2, 3);
}

->

fn foo() {
    let (a, b);
    a = 2;
    b = 3;
}

Unwrap the tuple destructuration assignment to different variables.

Example
---
```rust
fn foo() {
    let (a, b);
    (a, b) $0= (2, 3);
}
```
->
```rust
fn foo() {
    let (a, b);
    a = 2;
    b = 3;
}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 23, 2025
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.

New assist: Convert destructuring tuple assignment into individual assignments

2 participants