Closed
Description
There's lot of stuff like this in the current code:
alt expr.node {
expr_field(_, _) | expr_index(_, _) { ... }
}
Where we need to have the (_, _, _)
in there even though we just want to match a variant, and don't care about the arguments. If I understand correctly, we're already disallowing shadowing such variants in patterns, so it is probably a good idea to also allow matching against them with just their name. I.e.
alt expr.node {
expr_field | expr_index { ... }
}