diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-08-21 18:37:34 -0400 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-09-10 17:33:06 -0400 |
| commit | 3815e91ccd8c7c8ed564476425bca6f1dc5e9607 (patch) | |
| tree | 69467a8cbf355feb3ffed3f14e06e7f33dc5e180 /compiler/rustc_ast_lowering/src | |
| parent | d5a04a9927d1685d63f1d59039ea7dd03ee090a5 (diff) | |
| download | rust-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.rs | 1 |
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), }; |
