Skip to content

Commit

Permalink
Add tests for issue 2534
Browse files Browse the repository at this point in the history
Closes 2534

The behavior described in the original issue can no longer be
reproduced. The tests show that to be the case regardless of if
`format_macro_matchers` is `true` or `false`.
  • Loading branch information
ytmimi authored and calebcartwright committed Jul 19, 2022
1 parent 05332b8 commit f2c31ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/target/issue-2534/format_macro_matchers_false.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// rustfmt-format_macro_matchers: false

macro_rules! foo {
($a:ident : $b:ty) => {};
($a:ident $b:ident $c:ident) => {};
}
6 changes: 6 additions & 0 deletions tests/target/issue-2534/format_macro_matchers_true.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// rustfmt-format_macro_matchers: true

macro_rules! foo {
($a:ident : $b:ty) => {};
($a:ident $b:ident $c:ident) => {};
}

0 comments on commit f2c31ba

Please sign in to comment.