Skip to content

Commit b865c1f

Browse files
committed
Don't ICE on macros with -Z show-span
Closes #17115
1 parent 641b198 commit b865c1f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustc/front/show_span.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ impl<'a> Visitor<()> for ShowSpanVisitor<'a> {
2828
self.sess.span_note(e.span, "expression");
2929
visit::walk_expr(self, e, ());
3030
}
31+
32+
fn visit_mac(&mut self, macro: &ast::Mac, e: ()) {
33+
visit::walk_mac(self, macro, e);
34+
}
3135
}
3236

3337
pub fn run(sess: &Session, krate: &ast::Crate) {

0 commit comments

Comments
 (0)