From a1dc28f236af8d76d2125b3d5a27c0139b682c64 Mon Sep 17 00:00:00 2001 From: veetaha Date: Sun, 10 May 2020 21:50:24 +0300 Subject: Resolve TODO about curly-braced constructions in expression statement --- xtask/src/ast_src.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xtask') 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 { /// ❰ (); ❱ /// ❰ {}; ❱ /// - /// // constructions with trailing curly brace can omit the semicolon // TODO: clarify + /// // constructions with trailing curly brace can omit the semicolon + /// // but only when there are satements immediately after them (this is important!) /// ❰ if bool_cond { } ❱ /// ❰ loop {} ❱ + /// ❰ somestatment; ❱ /// ``` /// /// [Reference](https://doc.rust-lang.org/reference/statements.html) -- cgit v1.2.3