Repository navigation
add section saying that code inside macro should be formatted - #13163
ShahakShama wants to merge 1 commit into
Conversation
80950a2 to
97d5e33
Compare
d87dabb to
fc7de22
Compare
97d5e33 to
e5fe0b7
Compare
Stavbe
left a comment
There was a problem hiding this comment.
@Stavbe made 1 comment.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on ShahakShama).
style.md line 456 at r1 (raw file):
`rustfmt` does not format code inside macro invocations. This applies to any macro that contains Rust code, such as `lazy_static!`, `stream!`, etc. Make sure the code inside the macro is formatted correctly.
remove, since we asked to not use it
Code quote:
`lazy_static!`
ShahakShama
left a comment
There was a problem hiding this comment.
@ShahakShama made 1 comment.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on Stavbe).
style.md line 456 at r1 (raw file):
Previously, Stavbe wrote…
remove, since we asked to not use it
Done.
e5fe0b7 to
fe86990
Compare
Stavbe
left a comment
There was a problem hiding this comment.
@Stavbe reviewed 1 file and all commit messages, and resolved 1 discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on ShahakShama).
d1d1f87 to
e4f0c02
Compare
7229846 to
a01ff41
Compare
e4f0c02 to
89d6451
Compare
a01ff41 to
444bf2c
Compare
89d6451 to
a352d6a
Compare
444bf2c to
85b29c4
Compare
a352d6a to
7722496
Compare
7722496 to
a06b86a
Compare
|
There hasn't been any activity on this pull request recently, and in order to prioritize active work, it has been marked as stale. |

Note
Low Risk
Low risk documentation-only change that does not affect runtime behavior or APIs.
Overview
Adds a new “Formatting Macros” subsection to
style.mdnoting thatrustfmtdoes not format Rust code inside macro invocations (e.g.,stream!,indexmap!) and recommending manually formatting that code (with a tip to temporarily move it outside the macro to runrustfmt).Written by Cursor Bugbot for commit fe86990. This will update automatically on new commits. Configure here.