mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-11 04:46:46 +00:00
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:
parent
905e1e1fc0
commit
32ff06d51c
9 changed files with 53 additions and 56 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue