diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-08-21 17:52:52 -0400 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-09-10 17:33:05 -0400 |
| commit | de4bd9f0f8aeb4b89e55ba33b755c9a93e999e1c (patch) | |
| tree | 05cc6034e654ed16e2c7c7dfc5e6f8999b1a2223 /compiler/rustc_interface/src | |
| parent | ad3a6f70ac9457173aa1f3f3af372aadec915f8d (diff) | |
| download | rust-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.rs | 1 |
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, } } |
