about summary refs log tree commit diff
path: root/compiler/rustc_passes
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2020-11-03 20:26:17 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2020-11-03 20:38:20 +0300
commit3237b3886c8d1bd19b78eda6040e2c55e5332a82 (patch)
tree4bcb710d6d3edbad6385025c985a5011a545bc8c /compiler/rustc_passes
parent0cd1516696550e108863bf4b4fb81ce5c4f58968 (diff)
downloadrust-3237b3886c8d1bd19b78eda6040e2c55e5332a82.tar.gz
rust-3237b3886c8d1bd19b78eda6040e2c55e5332a82.zip
rustc_ast: Do not panic by default when visiting macro calls
Diffstat (limited to 'compiler/rustc_passes')
-rw-r--r--compiler/rustc_passes/src/hir_stats.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_passes/src/hir_stats.rs b/compiler/rustc_passes/src/hir_stats.rs
index 9537321026e..697b48718b2 100644
--- a/compiler/rustc_passes/src/hir_stats.rs
+++ b/compiler/rustc_passes/src/hir_stats.rs
@@ -338,6 +338,7 @@ impl<'v> ast_visit::Visitor<'v> for StatCollector<'v> {
 
     fn visit_mac(&mut self, mac: &'v ast::MacCall) {
         self.record("MacCall", Id::None, mac);
+        ast_visit::walk_mac(self, mac)
     }
 
     fn visit_path_segment(&mut self, path_span: Span, path_segment: &'v ast::PathSegment) {