Auto merge of #68735 - JohnTitor:fix-ice-0202, r=estebank

Use `next_point` to avoid ICE

Fixes #68730

r? @estebank (I think you're familiar with that)
This commit is contained in:
bors 2020-02-03 00:04:16 +00:00
commit 01db581942
3 changed files with 2 additions and 2 deletions

View File

@ -671,12 +671,12 @@ impl<'a> Parser<'a> {
true
}
token::BinOp(token::Shl) => {
let span = self.token.span.with_lo(self.token.span.lo() + BytePos(1));
let span = self.sess.source_map().next_point(self.token.span);
self.bump_with(token::Lt, span);
true
}
token::LArrow => {
let span = self.token.span.with_lo(self.token.span.lo() + BytePos(1));
let span = self.sess.source_map().next_point(self.token.span);
self.bump_with(token::BinOp(token::Minus), span);
true
}

Binary file not shown.

Binary file not shown.