about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2020-08-21 17:52:52 -0400
committerAaron Hill <aa1ronham@gmail.com>2020-09-10 17:33:05 -0400
commitde4bd9f0f8aeb4b89e55ba33b755c9a93e999e1c (patch)
tree05cc6034e654ed16e2c7c7dfc5e6f8999b1a2223 /compiler/rustc_interface/src
parentad3a6f70ac9457173aa1f3f3af372aadec915f8d (diff)
downloadrust-de4bd9f0f8aeb4b89e55ba33b755c9a93e999e1c.tar.gz
rust-de4bd9f0f8aeb4b89e55ba33b755c9a93e999e1c.zip
Attach `TokenStream` to `ast::Block`
A `Block` does not have outer attributes, so we only capture tokens when
parsing a `macro_rules!` matcher
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/util.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/util.rs b/compiler/rustc_interface/src/util.rs
index b1b39fd1ad2..01441cafe8a 100644
--- a/compiler/rustc_interface/src/util.rs
+++ b/compiler/rustc_interface/src/util.rs
@@ -693,6 +693,7 @@ impl<'a> MutVisitor for ReplaceBodyWithLoop<'a, '_> {
                 rules,
                 id: resolver.next_node_id(),
                 span: rustc_span::DUMMY_SP,
+                tokens: None,
             }
         }