From 2a5ab9f5ddc2f60a9229904c412ac943e894c4b7 Mon Sep 17 00:00:00 2001 From: veetaha Date: Sun, 10 May 2020 22:08:06 +0300 Subject: Resolve TODO about macro 2.0 def --- crates/ra_syntax/src/ast/generated/nodes.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'crates/ra_syntax/src/ast/generated/nodes.rs') 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 { pub fn attr_input(&self) -> Option { support::child(&self.syntax) } pub fn nested_meta_items(&self) -> AstChildren { support::children(&self.syntax) } } -/// Macro definition. -/// +/// Macro 2.0 definition. +/// Their syntax is still WIP by rustc team... /// ``` /// ❰ -/// macro_rules! foo { -/// ($bar:tt) => {$bar} -/// } +/// macro foo { } /// ❱ /// ``` /// -/// [Reference](https://doc.rust-lang.org/reference/macros-by-example.html) +/// [RFC](https://github.com/rust-lang/rfcs/blob/master/text/1584-macros.md) #[derive(Debug, Clone, PartialEq, Eq, Hash)] pub struct MacroDef { pub(crate) syntax: SyntaxNode, -- cgit v1.2.3