about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2020-08-21 18:37:34 -0400
committerAaron Hill <aa1ronham@gmail.com>2020-09-10 17:33:06 -0400
commit3815e91ccd8c7c8ed564476425bca6f1dc5e9607 (patch)
tree69467a8cbf355feb3ffed3f14e06e7f33dc5e180 /compiler/rustc_ast_lowering/src
parentd5a04a9927d1685d63f1d59039ea7dd03ee090a5 (diff)
downloadrust-3815e91ccd8c7c8ed564476425bca6f1dc5e9607.tar.gz
rust-3815e91ccd8c7c8ed564476425bca6f1dc5e9607.zip
Attach tokens to `NtMeta` (`ast::AttrItem`)
An `AttrItem` does not have outer attributes, so we only capture tokens
when parsing a `macro_rules!` matcher
Diffstat (limited to 'compiler/rustc_ast_lowering/src')
-rw-r--r--compiler/rustc_ast_lowering/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs
index 20f3d551571..a28d022c661 100644
--- a/compiler/rustc_ast_lowering/src/lib.rs
+++ b/compiler/rustc_ast_lowering/src/lib.rs
@@ -967,6 +967,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
             AttrKind::Normal(ref item) => AttrKind::Normal(AttrItem {
                 path: item.path.clone(),
                 args: self.lower_mac_args(&item.args),
+                tokens: None,
             }),
             AttrKind::DocComment(comment_kind, data) => AttrKind::DocComment(comment_kind, data),
         };