Skip to content

Conversation

A4-Tacks
Copy link
Contributor

@A4-Tacks A4-Tacks commented Oct 20, 2025

Fixes #20847

Example

struct Inner;
struct A$0 { inner: Inner }
fn foo(A { .. }: A) {}

Before this PR:

struct Inner;
struct A(Inner);
fn foo(A(): A) {}

After this PR:

struct Inner;
struct A(Inner);
fn foo(A(..): A) {}

Example
---
```rust
struct Inner;
struct A$0 { inner: Inner }
fn foo(A { .. }: A) {}
```

**Before this PR**:

```rust
struct Inner;
struct A(Inner);
fn foo(A(): A) {}
```

**After this PR**:

```rust
struct Inner;
struct A(Inner);
fn foo(A(..): A) {}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 20, 2025
@ShoyuVanilla ShoyuVanilla added this pull request to the merge queue Oct 21, 2025
Merged via the queue into rust-lang:master with commit 76ebe7d Oct 21, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 21, 2025
@A4-Tacks A4-Tacks deleted the conv-named-to-tuple-rest-pat branch October 21, 2025 05:10
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.

"Convert to tuple struct" incorrectly erases .. patterns

3 participants