aboutsummaryrefslogtreecommitdiff
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
parent1677f35ef1686b96db704b397ba13abd4f03e1f1 (diff)
Resolve TODO about curly-braced constructions in expression statement
-rw-r--r--crates/ra_syntax/src/ast/generated/nodes.rs4
-rw-r--r--xtask/src/ast_src.rs4
2 files changed, 6 insertions, 2 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)
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)