Open
Description
If rustfmt encounters a macro call with invalid syntax, it fails to format some macro calls that comes after.
E.g., in the following code snippet,
foo!(|x = y|);
f!(match a {
_ => ( ),
});
g!( 1, 2, 3 );
the argument of foo!
is not valid syntax of rust. It fails to format f!
that comes after, but successfully formats g!
.
Interestingly, if g!
comes before f!
, then rustfmt is able to format both f!
and g!
.
foo!(|x = y|);
g!( 1, 2, 3 );
f!(match a {
_ => ( ),
});