diff options
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r-- | crates/ra_syntax/src/ast/generated/nodes.rs | 10 |
1 files changed, 4 insertions, 6 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)] |
2552 | pub struct MacroDef { | 2550 | pub struct MacroDef { |
2553 | pub(crate) syntax: SyntaxNode, | 2551 | pub(crate) syntax: SyntaxNode, |