File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
crates/ra_syntax/src/ast/generated Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -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
2081
/// ❰ if bool_cond { } ❱
2081
2082
/// ❰ loop {} ❱
2083
+ /// ❰ somestatment; ❱
2082
2084
/// ```
2083
2085
///
2084
2086
/// [Reference](https://doc.rust-lang.org/reference/statements.html)
Original file line number Diff line number Diff line change @@ -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
1727
/// ❰ if bool_cond { } ❱
1727
1728
/// ❰ loop {} ❱
1729
+ /// ❰ somestatment; ❱
1728
1730
/// ```
1729
1731
///
1730
1732
/// [Reference](https://doc.rust-lang.org/reference/statements.html)
You can’t perform that action at this time.
0 commit comments