diff options
-rw-r--r-- | crates/ra_syntax/src/ast/generated/nodes.rs | 4 | ||||
-rw-r--r-- | xtask/src/ast_src.rs | 4 |
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) |