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
This commit is contained in:
bors 2015-09-17 12:58:22 +00:00
commit c9fc4efd24
1 changed files with 1 additions and 1 deletions

View File

@ -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())))
}