aboutsummaryrefslogtreecommitdiff
path: root/xtask/src
diff options
context:
space:
mode:
authorveetaha <[email protected]>2020-05-10 19:50:24 +0100
committerveetaha <[email protected]>2020-05-10 19:51:53 +0100
commita1dc28f236af8d76d2125b3d5a27c0139b682c64 (patch)
tree88b29ddce9658d1857493eeb191117c539d0fa2f /xtask/src
parent1677f35ef1686b96db704b397ba13abd4f03e1f1 (diff)
Resolve TODO about curly-braced constructions in expression statement
Diffstat (limited to 'xtask/src')
-rw-r--r--xtask/src/ast_src.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs
index 405f6b337..a1dc2ce46 100644
--- a/xtask/src/ast_src.rs
+++ b/xtask/src/ast_src.rs
@@ -1722,9 +1722,11 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
1722 /// ❰ (); ❱ 1722 /// ❰ (); ❱
1723 /// ❰ {}; ❱ 1723 /// ❰ {}; ❱
1724 /// 1724 ///
1725 /// // constructions with trailing curly brace can omit the semicolon // TODO: clarify 1725 /// // constructions with trailing curly brace can omit the semicolon
1726 /// // but only when there are satements immediately after them (this is important!)
1726 /// ❰ if bool_cond { } ❱ 1727 /// ❰ if bool_cond { } ❱
1727 /// ❰ loop {} ❱ 1728 /// ❰ loop {} ❱
1729 /// ❰ somestatment; ❱
1728 /// ``` 1730 /// ```
1729 /// 1731 ///
1730 /// [Reference](https://doc.rust-lang.org/reference/statements.html) 1732 /// [Reference](https://doc.rust-lang.org/reference/statements.html)