rustc_ast: Do not panic by default when visiting macro calls
This commit is contained in:
parent
0cd1516696
commit
3237b3886c
16 changed files with 8 additions and 71 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue