mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 21:28:51 +00:00
Resolve TODO about curly-braced constructions in expression statement
This commit is contained in:
parent
1677f35ef1
commit
a1dc28f236
2 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -1722,9 +1722,11 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
|
|||
/// ❰ (); ❱
|
||||
/// ❰ {}; ❱
|
||||
///
|
||||
/// // 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)
|
||||
|
|
Loading…
Reference in a new issue