Emit a match-expression for Destructure nodes
dtolnay opened this issue · comments
David Tolnay commented
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.
let __v3 = &__v0.x;
let __v4 = &__v0.y;
/* ... */
match __v0 {
Point { x: __v3, y: __v4 } => {
/* ... */
}
}