Fix the span for ! returns
This commit is contained in:
parent
fc4d566b43
commit
4fbe514985
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue