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
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.

"Convert to tuple struct" incorrectly erases .. patterns

2 participants