Skip to content

Commit 639cb88

Browse files
estebankpietroalbini
authored andcommitted
review comments
1 parent d8c0748 commit 639cb88

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7718,7 +7718,8 @@ impl<'a> Parser<'a> {
77187718
&mut self.token_cursor.frame.last_token
77197719
} else if self.token_cursor.stack.get(prev).is_none() {
77207720
// This can happen due to a bad interaction of two unrelated recovery mechanisms with
7721-
// mismatched delimiters *and* recovery lookahead on `pub ident(` likely typo (#62881)
7721+
// mismatched delimiters *and* recovery lookahead on the likely typo `pub ident(`
7722+
// (#62881).
77227723
return Ok((ret?, TokenStream::new(vec![])));
77237724
} else {
77247725
&mut self.token_cursor.stack[prev].last_token
@@ -7732,8 +7733,8 @@ impl<'a> Parser<'a> {
77327733
debug!("collect_tokens: {}", msg);
77337734
self.sess.span_diagnostic.delay_span_bug(self.token.span, &msg);
77347735
// This can happen due to a bad interaction of two unrelated recovery mechanisms
7735-
// with mismatched delimiters *and* recovery lookahead on `pub ident(` likely typo
7736-
// (#62895, different but similar to the case above)
7736+
// with mismatched delimiters *and* recovery lookahead on the likely typo
7737+
// `pub ident(` (#62895, different but similar to the case above).
77377738
return Ok((ret?, TokenStream::new(vec![])));
77387739
}
77397740
};
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)