diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2015-09-17 15:13:51 +1200 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2015-09-17 15:13:51 +1200 |
| commit | 4fbe5149856e4de2dc74ef4a5ae7c7903e388117 (patch) | |
| tree | ecee57a4ad8afed586ef5c9565b167312c163741 /src/libsyntax/parse | |
| parent | fc4d566b432d48933e27dd65a973c936b564d6e9 (diff) | |
| download | rust-4fbe5149856e4de2dc74ef4a5ae7c7903e388117.tar.gz rust-4fbe5149856e4de2dc74ef4a5ae7c7903e388117.zip | |
Fix the span for ! returns
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
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()))) } |
