Add tests for issue 2534
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`.
This commit is contained in:
parent
05332b8c50
commit
f2c31ba04d
tests/target/issue-2534
6
tests/target/issue-2534/format_macro_matchers_false.rs
Normal file
6
tests/target/issue-2534/format_macro_matchers_false.rs
Normal file
@ -0,0 +1,6 @@
|
||||
// rustfmt-format_macro_matchers: false
|
||||
|
||||
macro_rules! foo {
|
||||
($a:ident : $b:ty) => {};
|
||||
($a:ident $b:ident $c:ident) => {};
|
||||
}
|
6
tests/target/issue-2534/format_macro_matchers_true.rs
Normal file
6
tests/target/issue-2534/format_macro_matchers_true.rs
Normal file
@ -0,0 +1,6 @@
|
||||
// rustfmt-format_macro_matchers: true
|
||||
|
||||
macro_rules! foo {
|
||||
($a:ident : $b:ty) => {};
|
||||
($a:ident $b:ident $c:ident) => {};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user