about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2015-09-17 15:13:51 +1200
committerNick Cameron <ncameron@mozilla.com>2015-09-17 15:13:51 +1200
commit4fbe5149856e4de2dc74ef4a5ae7c7903e388117 (patch)
treeecee57a4ad8afed586ef5c9565b167312c163741 /src/libsyntax/parse
parentfc4d566b432d48933e27dd65a973c936b564d6e9 (diff)
downloadrust-4fbe5149856e4de2dc74ef4a5ae7c7903e388117.tar.gz
rust-4fbe5149856e4de2dc74ef4a5ae7c7903e388117.zip
Fix the span for ! returns
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 ff622859cf0..b6650b6f944 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -1263,7 +1263,7 @@ impl<'a> Parser<'a> {
     pub fn parse_ret_ty(&mut self) -> PResult<FunctionRetTy> {
         if try!(self.eat(&token::RArrow) ){
             if try!(self.eat(&token::Not) ){
-                Ok(NoReturn(self.span))
+                Ok(NoReturn(self.last_span))
             } else {
                 Ok(Return(try!(self.parse_ty_nopanic())))
             }