syntax: Remove redundant span from ast::Mac

Also remove a couple of redundant `visit_mac` asserts
This commit is contained in:
Vadim Petrochenkov 2019-12-01 15:55:32 +03:00
parent a81804b4d5
commit 0fac56717a
16 changed files with 34 additions and 56 deletions

View file

@ -927,7 +927,6 @@ impl<'a> Parser<'a> {
ex = ExprKind::Mac(Mac {
path,
args,
span: lo.to(hi),
prior_type_ascription: self.last_type_ascription,
});
} else if self.check(&token::OpenDelim(token::Brace)) {