diff options
author | veetaha <[email protected]> | 2020-05-10 20:08:06 +0100 |
---|---|---|
committer | veetaha <[email protected]> | 2020-05-10 20:08:06 +0100 |
commit | 2a5ab9f5ddc2f60a9229904c412ac943e894c4b7 (patch) | |
tree | a618a8c15ba1531a6d0272bc70cdc6580dcab7e2 /xtask/src | |
parent | 73c6bc4dbd8ac06f587045d030d07c0fabebf260 (diff) |
Resolve TODO about macro 2.0 def
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/ast_src.rs | 12 |
1 files changed, 4 insertions, 8 deletions
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 | } |