Skip to content

Commit c9fc4ef

Browse files
committed
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
2 parents 89faafc + 4fbe514 commit c9fc4ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ impl<'a> Parser<'a> {
12631263
pub fn parse_ret_ty(&mut self) -> PResult<FunctionRetTy> {
12641264
if try!(self.eat(&token::RArrow) ){
12651265
if try!(self.eat(&token::Not) ){
1266-
Ok(NoReturn(self.span))
1266+
Ok(NoReturn(self.last_span))
12671267
} else {
12681268
Ok(Return(try!(self.parse_ty_nopanic())))
12691269
}

0 commit comments

Comments
 (0)