1
Fork 0

rustc_ast: Do not panic by default when visiting macro calls

This commit is contained in:
Vadim Petrochenkov 2020-11-03 20:26:17 +03:00
parent 0cd1516696
commit 3237b3886c
16 changed files with 8 additions and 71 deletions

View file

@ -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) {