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 --- crates/ra_syntax/src/ast/generated/nodes.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crates/ra_syntax/src/ast/generated') diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs index 22de5aae4..9254e4fd4 100644 --- a/crates/ra_syntax/src/ast/generated/nodes.rs +++ b/crates/ra_syntax/src/ast/generated/nodes.rs @@ -2076,9 +2076,11 @@ impl Abi {} /// ❰ (); ❱ /// ❰ {}; ❱ /// -/// // 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