From 8a298eed7a2f68fdf014f92e5b5a7010dcae1f0b Mon Sep 17 00:00:00 2001 From: veetaha Date: Sun, 10 May 2020 21:44:14 +0300 Subject: Resolve todos about refs and empty statements --- crates/ra_syntax/src/ast/generated/nodes.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ra_syntax/src/ast/generated') diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs index 72977a3c6..22de5aae4 100644 --- a/crates/ra_syntax/src/ast/generated/nodes.rs +++ b/crates/ra_syntax/src/ast/generated/nodes.rs @@ -1515,9 +1515,9 @@ impl ParenPat { /// /// ``` /// let ❰ &mut foo ❱ = bar; +/// +/// let ❰ & ❰ &mut ❰ &_ ❱ ❱ ❱ = baz; /// ``` -/// // TODO: clarify on the special case of double reference pattern -/// // described in the link bellow /// /// [Reference](https://doc.rust-lang.org/reference/patterns.html#reference-patterns) #[derive(Debug, Clone, PartialEq, Eq, Hash)] @@ -2069,14 +2069,12 @@ pub struct Abi { } impl Abi {} /// Expression statement. -/// Note: may be empty (i.e. only semicolon). /// /// ``` /// ❰ 42; ❱ /// ❰ foo(); ❱ /// ❰ (); ❱ /// ❰ {}; ❱ -/// ❰ /* empty */; ❱ /// /// // constructions with trailing curly brace can omit the semicolon // TODO: clarify /// ❰ if bool_cond { } ❱ @@ -2707,6 +2705,8 @@ pub enum AttrInput { TokenTree(TokenTree), } /// Any kind of statement +/// Note: there are no empty statements, these are just represented as +/// bare semicolons without a dedicated statement ast node. #[derive(Debug, Clone, PartialEq, Eq, Hash)] pub enum Stmt { LetStmt(LetStmt), -- cgit v1.2.3