aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_syntax/src/ast/generated/nodes.rs10
-rw-r--r--xtask/src/ast_src.rs12
2 files changed, 8 insertions, 14 deletions
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs
index 201ceb548..7ee4590ba 100644
--- a/crates/ra_syntax/src/ast/generated/nodes.rs
+++ b/crates/ra_syntax/src/ast/generated/nodes.rs
@@ -2537,17 +2537,15 @@ impl MetaItem {
2537 pub fn attr_input(&self) -> Option<AttrInput> { support::child(&self.syntax) } 2537 pub fn attr_input(&self) -> Option<AttrInput> { support::child(&self.syntax) }
2538 pub fn nested_meta_items(&self) -> AstChildren<MetaItem> { support::children(&self.syntax) } 2538 pub fn nested_meta_items(&self) -> AstChildren<MetaItem> { support::children(&self.syntax) }
2539} 2539}
2540/// Macro definition. 2540/// Macro 2.0 definition.
2541/// 2541/// Their syntax is still WIP by rustc team...
2542/// ``` 2542/// ```
2543/// ❰ 2543/// ❰
2544/// macro_rules! foo { 2544/// macro foo { }
2545/// ($bar:tt) => {$bar}
2546/// }
2547/// ❱ 2545/// ❱
2548/// ``` 2546/// ```
2549/// 2547///
2550/// [Reference](https://doc.rust-lang.org/reference/macros-by-example.html) 2548/// [RFC](https://github.com/rust-lang/rfcs/blob/master/text/1584-macros.md)
2551#[derive(Debug, Clone, PartialEq, Eq, Hash)] 2549#[derive(Debug, Clone, PartialEq, Eq, Hash)]
2552pub struct MacroDef { 2550pub struct MacroDef {
2553 pub(crate) syntax: SyntaxNode, 2551 pub(crate) syntax: SyntaxNode,
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs
index a7b0f2b05..d1e34e299 100644
--- a/xtask/src/ast_src.rs
+++ b/xtask/src/ast_src.rs
@@ -2049,19 +2049,15 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
2049 Path, T![=], AttrInput, nested_meta_items: [MetaItem] 2049 Path, T![=], AttrInput, nested_meta_items: [MetaItem]
2050 } 2050 }
2051 2051
2052 // TODO: is this a special case of `MacroCall` where `Name` = `macro_rules`? 2052 /// Macro 2.0 definition.
2053 // It doesn't seem this ast node is used anywhere 2053 /// Their syntax is still WIP by rustc team...
2054 /// Macro definition.
2055 ///
2056 /// ``` 2054 /// ```
2057 /// ❰ 2055 /// ❰
2058 /// macro_rules! foo { 2056 /// macro foo { }
2059 /// ($bar:tt) => {$bar}
2060 /// }
2061 /// ❱ 2057 /// ❱
2062 /// ``` 2058 /// ```
2063 /// 2059 ///
2064 /// [Reference](https://doc.rust-lang.org/reference/macros-by-example.html) 2060 /// [RFC](https://github.com/rust-lang/rfcs/blob/master/text/1584-macros.md)
2065 struct MacroDef { 2061 struct MacroDef {
2066 Name, TokenTree 2062 Name, TokenTree
2067 } 2063 }