Skip to content

Conversation

@A4-Tacks
Copy link
Member

Example

enum Enum<T> {
    Unit,
    Tuple(T),
}

type EnumAlias<T> = Enum<T>;

fn f(x: EnumAlias<u8>) {
    match x {
        $0 => (),
        _ => (),
    }

}

Before this PR

en Enum
bn Enum::Tuple(…) Enum::Tuple($1)$0
bn Enum::Unit          Enum::Unit$0
kw mut
kw ref

After this PR

en Enum
ta EnumAlias
bn Enum::Tuple(…) Enum::Tuple($1)$0
bn Enum::Unit          Enum::Unit$0
kw mut
kw ref

Example
---
```rust
enum Enum<T> {
    Unit,
    Tuple(T),
}

type EnumAlias<T> = Enum<T>;

fn f(x: EnumAlias<u8>) {
    match x {
        $0 => (),
        _ => (),
    }

}
```

**Before this PR**

```text
en Enum
bn Enum::Tuple(…) Enum::Tuple($1)$0
bn Enum::Unit          Enum::Unit$0
kw mut
kw ref
```

**After this PR**

```text
en Enum
ta EnumAlias
bn Enum::Tuple(…) Enum::Tuple($1)$0
bn Enum::Unit          Enum::Unit$0
kw mut
kw ref
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 12, 2025
@A4-Tacks A4-Tacks mentioned this pull request Nov 19, 2025
41 tasks
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