about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-09-23 15:00:53 +0000
committerbors <bors@rust-lang.org>2018-09-23 15:00:53 +0000
commitf49f6e73a8a2dd6ec9f86df9922ccfa2210d9eda (patch)
treec690cdcb18ef4d4ab0260686d22c509a1b2a7cdf /src/libsyntax/parse
parentbe91c35f3466843713b9b6c5a7238ba83aef3602 (diff)
parentb342f0017931180097f17905da8640f674165255 (diff)
downloadrust-f49f6e73a8a2dd6ec9f86df9922ccfa2210d9eda.tar.gz
rust-f49f6e73a8a2dd6ec9f86df9922ccfa2210d9eda.zip
Auto merge of #54229 - davidtwco:issue-52534, r=pnkfelix
[nll] borrows that must be valid for a free lifetime should explain why

Fixes #52534.

r? @nikomatsakis
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
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 {