You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can cause rustfmt to break certain macro-using code. The behavior still exists if you substitute a rather than a!, and I guess it's weird if it's not idempotent, but it's a bit of an edge case since that is not syntactically valid rust anyway. But you can write fully-compilable code that exhibits this behavior when formatted with rustfmt, if you're using certain macros like assert_matches!.
The text was updated successfully, but these errors were encountered:
Start with this:
Rust rustfmt, and you get this:
Run it a third time, and you get this:
And then we have a fixed point.
This can cause rustfmt to break certain macro-using code. The behavior still exists if you substitute
a
rather thana!
, and I guess it's weird if it's not idempotent, but it's a bit of an edge case since that is not syntactically valid rust anyway. But you can write fully-compilable code that exhibits this behavior when formatted with rustfmt, if you're using certain macros likeassert_matches!
.The text was updated successfully, but these errors were encountered: