Skip to content
Permalink
Browse files

Visit path in `walk_mac`

  • Loading branch information...
varkor committed Mar 25, 2019
1 parent 33ef0ba commit c6e3ea475b9378fd551064e7b4e74ee96855337f
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/libsyntax/visit.rs
  2. +1 −1 src/libsyntax_ext/proc_macro_decls.rs
@@ -647,8 +647,8 @@ pub fn walk_stmt<'a, V: Visitor<'a>>(visitor: &mut V, statement: &'a Stmt) {
}
}

pub fn walk_mac<'a, V: Visitor<'a>>(_: &mut V, _: &Mac) {
// Empty!
pub fn walk_mac<'a, V: Visitor<'a>>(visitor: &mut V, mac: &'a Mac) {
visitor.visit_path(&mac.node.path, DUMMY_NODE_ID);
}

pub fn walk_anon_const<'a, V: Visitor<'a>>(visitor: &mut V, constant: &'a AnonConst) {
@@ -317,7 +317,7 @@ impl<'a> Visitor<'a> for CollectProcMacros<'a> {
self.in_root = prev_in_root;
}

fn visit_mac(&mut self, mac: &ast::Mac) {
fn visit_mac(&mut self, mac: &'a ast::Mac) {
visit::walk_mac(self, mac)
}
}

0 comments on commit c6e3ea4

Please sign in to comment.
You can’t perform that action at this time.