Skip to content

Commit

Permalink
Auto merge of #28455 - nrc:span-bang, r=alexcrichton
Browse files Browse the repository at this point in the history
I can't see how to test this.

Fixes https://github.com/nrc/rustfmt/issues/320
  • Loading branch information
bors committed Sep 17, 2015
2 parents 89faafc + 4fbe514 commit c9fc4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())))
}
Expand Down

0 comments on commit c9fc4ef

Please sign in to comment.