Skip to content

Commit 4fbe514

Browse files
committed
Fix the span for ! returns
1 parent fc4d566 commit 4fbe514

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)