Rename Span::empty
to Span::shrink_to_lo
, add Span::shrink_to_hi
This commit is contained in:
parent
e5fb13897d
commit
f88162654d
22 changed files with 38 additions and 31 deletions
|
@ -1512,7 +1512,7 @@ impl<'a> Parser<'a> {
|
|||
if self.eat(&token::RArrow) {
|
||||
Ok(FunctionRetTy::Ty(self.parse_ty_common(allow_plus, true)?))
|
||||
} else {
|
||||
Ok(FunctionRetTy::Default(self.span.with_hi(self.span.lo())))
|
||||
Ok(FunctionRetTy::Default(self.span.shrink_to_lo()))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue