about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-09-02 21:02:34 +0000
committerbors <bors@rust-lang.org>2015-09-02 21:02:34 +0000
commitb7b1dced3c0ab90144b4844498a3b678d690b20e (patch)
tree8f98647801e424f1ebd14a57ed052c65d44ee4ec /src/libsyntax/parse
parentcfd76b364cd01695517467299618ef63f1c0cc07 (diff)
parent3a360fca78b415d31783ec715a2c9024a89eeb75 (diff)
downloadrust-b7b1dced3c0ab90144b4844498a3b678d690b20e.tar.gz
rust-b7b1dced3c0ab90144b4844498a3b678d690b20e.zip
Auto merge of #28117 - marcusklaas:continue-break, r=alexcrichton
Fixes https://github.com/rust-lang/rust/issues/28108.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 4966215a9f2..0772d124db8 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -2149,7 +2149,7 @@ impl<'a> Parser<'a> {
                     } else {
                         ExprAgain(None)
                     };
-                    let hi = self.span.hi;
+                    let hi = self.last_span.hi;
                     return Ok(self.mk_expr(lo, hi, ex));
                 }
                 if try!(self.eat_keyword(keywords::Match) ){
@@ -2178,7 +2178,7 @@ impl<'a> Parser<'a> {
                     } else {
                         ex = ExprBreak(None);
                     }
-                    hi = self.span.hi;
+                    hi = self.last_span.hi;
                 } else if self.check(&token::ModSep) ||
                         self.token.is_ident() &&
                         !self.check_keyword(keywords::True) &&