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
|
@ -114,9 +114,9 @@ impl<'ast> Visitor<'ast> for NodeCounter {
|
|||
self.count += 1;
|
||||
walk_lifetime(self, lifetime)
|
||||
}
|
||||
fn visit_mac(&mut self, _mac: &MacCall) {
|
||||
fn visit_mac(&mut self, mac: &MacCall) {
|
||||
self.count += 1;
|
||||
walk_mac(self, _mac)
|
||||
walk_mac(self, mac)
|
||||
}
|
||||
fn visit_path(&mut self, path: &Path, _id: NodeId) {
|
||||
self.count += 1;
|
||||
|
|
|
@ -54,10 +54,6 @@ impl<'a> Visitor<'a> for ShowSpanVisitor<'a> {
|
|||
}
|
||||
visit::walk_ty(self, t);
|
||||
}
|
||||
|
||||
fn visit_mac(&mut self, mac: &'a ast::MacCall) {
|
||||
visit::walk_mac(self, mac);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn run(span_diagnostic: &rustc_errors::Handler, mode: &str, krate: &ast::Crate) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue