You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix shorthand field pat for destructure_tuple_binding
Example
---
```rust
struct S { field: (i32, i32) }
fn main() {
let S { $0field } = S { field: (2, 3) };
let v = field.0 + field.1;
}
```
**Before this PR**:
```rust
struct S { field: (i32, i32) }
fn main() {
let S { ($0_0, _1) } = S { field: (2, 3) };
let v = _0 + _1;
}
```
**After this PR**:
```rust
struct S { field: (i32, i32) }
fn main() {
let S { field: ($0_0, _1) } = S { field: (2, 3) };
let v = _0 + _1;
}
```
0 commit comments