We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 500647f commit 45b2559Copy full SHA for 45b2559
src/doc/style-guide/src/expressions.md
@@ -663,7 +663,8 @@ never use a block (unless the block is empty).
663
664
If the right-hand side consists of multiple statements, or has line comments,
665
or the start of the line does not fit on the same line as the left-hand side,
666
-use a block.
+use a block. Do not flatten a right-hand side block containing a single macro call
667
+because its expanded form could contain a trailing semicolon.
668
669
Block-indent the body of a block arm.
670
@@ -686,6 +687,10 @@ match foo {
686
687
bar => {}
688
// Trailing comma on last item.
689
foo => bar,
690
+ baz => qux!(),
691
+ lorem => {
692
+ ipsum!()
693
+ }
694
}
695
```
696
0 commit comments