dtolnay / dtolnay/reflect

Emit a match-expression for Destructure nodes

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
780
Forks
23
PR merge metrics
No merged PRs in 30d

Description

This part of the current generated code would be better expressed as a `match`, which would be able to work equally well against enums later.

```rust
let __v3 = &__v0.x;
let __v4 = &__v0.y;
/* ... */
```

```rust
match __v0 {
Point { x: __v3, y: __v4 } => {
/* ... */
}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.