1
Fork 0

Make WalkItemKind::walk signature compatible between Visitor versions

This commit is contained in:
maxcabrajac 2024-11-12 13:20:17 -03:00
parent 6180173612
commit 516a3b0c9b
2 changed files with 27 additions and 18 deletions

View file

@ -1324,7 +1324,7 @@ impl<'a, 'ra, 'tcx> Visitor<'a> for BuildReducedGraphVisitor<'a, 'ra, 'tcx> {
// This way they can use `macro_rules` defined later.
self.visit_vis(&item.vis);
self.visit_ident(&item.ident);
item.kind.walk(item, (), self);
item.kind.walk(item.span, item.id, &item.ident, &item.vis, (), self);
visit::walk_list!(self, visit_attribute, &item.attrs);
}
_ => visit::walk_item(self, item),