1
Fork 0

Use next_point to avoid ICE

This commit is contained in:
Yuki Okushi 2020-02-02 02:39:53 +09:00
parent 6c0b779b7b
commit 6f5a61b5fb
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.