From b865c1f28ca2459b27c1ac83829aa45085f1b50e Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Tue, 9 Sep 2014 22:38:23 -0700 Subject: [PATCH] Don't ICE on macros with -Z show-span Closes #17115 --- src/librustc/front/show_span.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/librustc/front/show_span.rs b/src/librustc/front/show_span.rs index 36db4e422c1..1a59b3603de 100644 --- a/src/librustc/front/show_span.rs +++ b/src/librustc/front/show_span.rs @@ -28,6 +28,10 @@ impl<'a> Visitor<()> for ShowSpanVisitor<'a> { self.sess.span_note(e.span, "expression"); visit::walk_expr(self, e, ()); } + + fn visit_mac(&mut self, macro: &ast::Mac, e: ()) { + visit::walk_mac(self, macro, e); + } } pub fn run(sess: &Session, krate: &ast::Crate) {