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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user