diff options
| author | bors <bors@rust-lang.org> | 2015-09-17 12:58:22 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-09-17 12:58:22 +0000 |
| commit | c9fc4efd24ede43bed844f44a14b35eb406825aa (patch) | |
| tree | 80886d2f2e505ad7aada9858d2bfd485d5e5bfee /src/libsyntax | |
| parent | 89faafcd67a45b66aa4a8b6ae36e97b1cee80200 (diff) | |
| parent | 4fbe5149856e4de2dc74ef4a5ae7c7903e388117 (diff) | |
| download | rust-c9fc4efd24ede43bed844f44a14b35eb406825aa.tar.gz rust-c9fc4efd24ede43bed844f44a14b35eb406825aa.zip | |
Auto merge of #28455 - nrc:span-bang, r=alexcrichton
I can't see how to test this. Fixes https://github.com/nrc/rustfmt/issues/320
Diffstat (limited to 'src/libsyntax')
| -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()))) } |
