Fixed off-by-one span.

Fixes the off-by-one span issue where closure argument spans were
pointing to the token after the argument.
This commit is contained in:
David Wood
2018-09-17 19:39:37 +02:00
parent 97bbcabef1
commit 3becbbc129
4 changed files with 9 additions and 9 deletions

View File

@@ -1848,7 +1848,7 @@ impl<'a> Parser<'a> {
P(Ty {
id: ast::DUMMY_NODE_ID,
node: TyKind::Infer,
span: self.span,
span: self.prev_span,
})
};
Ok(Arg {