diff options
-rw-r--r-- | crates/ra_syntax/src/ast/generated/nodes.rs | 8 | ||||
-rw-r--r-- | xtask/src/ast_src.rs | 9 |
2 files changed, 8 insertions, 9 deletions
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 { | |||
1515 | /// | 1515 | /// |
1516 | /// ``` | 1516 | /// ``` |
1517 | /// let ❰ &mut foo ❱ = bar; | 1517 | /// let ❰ &mut foo ❱ = bar; |
1518 | /// | ||
1519 | /// let ❰ & ❰ &mut ❰ &_ ❱ ❱ ❱ = baz; | ||
1518 | /// ``` | 1520 | /// ``` |
1519 | /// // TODO: clarify on the special case of double reference pattern | ||
1520 | /// // described in the link bellow | ||
1521 | /// | 1521 | /// |
1522 | /// [Reference](https://doc.rust-lang.org/reference/patterns.html#reference-patterns) | 1522 | /// [Reference](https://doc.rust-lang.org/reference/patterns.html#reference-patterns) |
1523 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1523 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
@@ -2069,14 +2069,12 @@ pub struct Abi { | |||
2069 | } | 2069 | } |
2070 | impl Abi {} | 2070 | impl Abi {} |
2071 | /// Expression statement. | 2071 | /// Expression statement. |
2072 | /// Note: may be empty (i.e. only semicolon). | ||
2073 | /// | 2072 | /// |
2074 | /// ``` | 2073 | /// ``` |
2075 | /// ❰ 42; ❱ | 2074 | /// ❰ 42; ❱ |
2076 | /// ❰ foo(); ❱ | 2075 | /// ❰ foo(); ❱ |
2077 | /// ❰ (); ❱ | 2076 | /// ❰ (); ❱ |
2078 | /// ❰ {}; ❱ | 2077 | /// ❰ {}; ❱ |
2079 | /// ❰ /* empty */; ❱ | ||
2080 | /// | 2078 | /// |
2081 | /// // constructions with trailing curly brace can omit the semicolon // TODO: clarify | 2079 | /// // constructions with trailing curly brace can omit the semicolon // TODO: clarify |
2082 | /// ❰ if bool_cond { } ❱ | 2080 | /// ❰ if bool_cond { } ❱ |
@@ -2707,6 +2705,8 @@ pub enum AttrInput { | |||
2707 | TokenTree(TokenTree), | 2705 | TokenTree(TokenTree), |
2708 | } | 2706 | } |
2709 | /// Any kind of statement | 2707 | /// Any kind of statement |
2708 | /// Note: there are no empty statements, these are just represented as | ||
2709 | /// bare semicolons without a dedicated statement ast node. | ||
2710 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2710 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
2711 | pub enum Stmt { | 2711 | pub enum Stmt { |
2712 | LetStmt(LetStmt), | 2712 | LetStmt(LetStmt), |
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index 821b13378..deb9f690d 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs | |||
@@ -1349,9 +1349,9 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { | |||
1349 | /// | 1349 | /// |
1350 | /// ``` | 1350 | /// ``` |
1351 | /// let ❰ &mut foo ❱ = bar; | 1351 | /// let ❰ &mut foo ❱ = bar; |
1352 | /// | ||
1353 | /// let ❰ & ❰ &mut ❰ &_ ❱ ❱ ❱ = baz; | ||
1352 | /// ``` | 1354 | /// ``` |
1353 | /// // TODO: clarify on the special case of double reference pattern | ||
1354 | /// // described in the link bellow | ||
1355 | /// | 1355 | /// |
1356 | /// [Reference](https://doc.rust-lang.org/reference/patterns.html#reference-patterns) | 1356 | /// [Reference](https://doc.rust-lang.org/reference/patterns.html#reference-patterns) |
1357 | struct RefPat { T![&], T![mut], Pat } | 1357 | struct RefPat { T![&], T![mut], Pat } |
@@ -1714,16 +1714,13 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { | |||
1714 | /// - [FFI function pointers reference](https://doc.rust-lang.org/reference/items/functions.html#functions) | 1714 | /// - [FFI function pointers reference](https://doc.rust-lang.org/reference/items/functions.html#functions) |
1715 | struct Abi { /*String*/ } | 1715 | struct Abi { /*String*/ } |
1716 | 1716 | ||
1717 | // TODO: clarify how empty statements are handled | ||
1718 | /// Expression statement. | 1717 | /// Expression statement. |
1719 | /// Note: may be empty (i.e. only semicolon). | ||
1720 | /// | 1718 | /// |
1721 | /// ``` | 1719 | /// ``` |
1722 | /// ❰ 42; ❱ | 1720 | /// ❰ 42; ❱ |
1723 | /// ❰ foo(); ❱ | 1721 | /// ❰ foo(); ❱ |
1724 | /// ❰ (); ❱ | 1722 | /// ❰ (); ❱ |
1725 | /// ❰ {}; ❱ | 1723 | /// ❰ {}; ❱ |
1726 | /// ❰ /* empty */; ❱ | ||
1727 | /// | 1724 | /// |
1728 | /// // constructions with trailing curly brace can omit the semicolon // TODO: clarify | 1725 | /// // constructions with trailing curly brace can omit the semicolon // TODO: clarify |
1729 | /// ❰ if bool_cond { } ❱ | 1726 | /// ❰ if bool_cond { } ❱ |
@@ -2201,6 +2198,8 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { | |||
2201 | enum AttrInput { Literal, TokenTree } | 2198 | enum AttrInput { Literal, TokenTree } |
2202 | 2199 | ||
2203 | /// Any kind of statement | 2200 | /// Any kind of statement |
2201 | /// Note: there are no empty statements, these are just represented as | ||
2202 | /// bare semicolons without a dedicated statement ast node. | ||
2204 | enum Stmt { | 2203 | enum Stmt { |
2205 | LetStmt, | 2204 | LetStmt, |
2206 | ExprStmt, | 2205 | ExprStmt, |