internal: Generally improve make::match_arm

`make::match_arm` should take a single `ast::Pat`, and callers can handle creating an `ast::OrPat` if need be. It should also take a proper `ast::MatchGuard`, instead of making one itself.
This commit is contained in:
Giga Bowser 2024-12-16 15:28:17 -05:00
parent 905e1e1fc0
commit 32ff06d51c
9 changed files with 53 additions and 56 deletions

View file

@ -335,7 +335,7 @@ mod tests {
#[test]
fn basic_usage() {
let root = make::match_arm(
[make::wildcard_pat().into()],
make::wildcard_pat().into(),
None,
make::expr_tuple([
make::expr_bin_op(