mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
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:
commit
01db581942
@ -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
|
||||
}
|
||||
|
BIN
src/test/ui/parser/issue-68730.rs
Normal file
BIN
src/test/ui/parser/issue-68730.rs
Normal file
Binary file not shown.
BIN
src/test/ui/parser/issue-68730.stderr
Normal file
BIN
src/test/ui/parser/issue-68730.stderr
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user