aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast
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 /crates/ra_syntax/src/ast
parent1677f35ef1686b96db704b397ba13abd4f03e1f1 (diff)
Resolve TODO about curly-braced constructions in expression statement
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r--crates/ra_syntax/src/ast/generated/nodes.rs4
1 files changed, 3 insertions, 1 deletions
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 {}
2076/// ❰ (); ❱ 2076/// ❰ (); ❱
2077/// ❰ {}; ❱ 2077/// ❰ {}; ❱
2078/// 2078///
2079/// // constructions with trailing curly brace can omit the semicolon // TODO: clarify 2079/// // constructions with trailing curly brace can omit the semicolon
2080/// // but only when there are satements immediately after them (this is important!)
2080/// ❰ if bool_cond { } ❱ 2081/// ❰ if bool_cond { } ❱
2081/// ❰ loop {} ❱ 2082/// ❰ loop {} ❱
2083/// ❰ somestatment; ❱
2082/// ``` 2084/// ```
2083/// 2085///
2084/// [Reference](https://doc.rust-lang.org/reference/statements.html) 2086/// [Reference](https://doc.rust-lang.org/reference/statements.html)