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:
commit
c9fc4efd24
|
@ -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())))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue