From 3becbbc1299f6938ff13f09ee3b3f37f7600326f Mon Sep 17 00:00:00 2001 From: David Wood Date: Mon, 17 Sep 2018 19:39:37 +0200 Subject: Fixed off-by-one span. Fixes the off-by-one span issue where closure argument spans were pointing to the token after the argument. --- src/libsyntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 7a13beb7852..d6cbe47a66e 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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 { -- cgit 1.4.1-3-g733a5