1
Fork 0

Remove unused span argument from walk_fn.

This commit is contained in:
Nicholas Nethercote 2022-09-12 13:13:22 +10:00
parent 6568ef338e
commit 925363f13d
13 changed files with 22 additions and 23 deletions

View file

@ -279,12 +279,12 @@ impl<'a, 'hir> Visitor<'hir> for NodeCollector<'a, 'hir> {
fk: intravisit::FnKind<'hir>,
fd: &'hir FnDecl<'hir>,
b: BodyId,
s: Span,
_: Span,
id: HirId,
) {
assert_eq!(self.owner, id.owner);
assert_eq!(self.parent_node, id.local_id);
intravisit::walk_fn(self, fk, fd, b, s, id);
intravisit::walk_fn(self, fk, fd, b, id);
}
fn visit_block(&mut self, block: &'hir Block<'hir>) {