Skip to content

Commit fe2b5bb

Browse files
committed
review comments
1 parent f56c8f6 commit fe2b5bb

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

src/libsyntax/parse/parser.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -7672,7 +7672,8 @@ impl<'a> Parser<'a> {
76727672
&mut self.token_cursor.frame.last_token
76737673
} else if self.token_cursor.stack.get(prev).is_none() {
76747674
// This can happen due to a bad interaction of two unrelated recovery mechanisms with
7675-
// mismatched delimiters *and* recovery lookahead on `pub ident(` likely typo (#62881)
7675+
// mismatched delimiters *and* recovery lookahead on the likely typo `pub ident(`
7676+
// (#62881).
76767677
return Ok((ret?, TokenStream::new(vec![])));
76777678
} else {
76787679
&mut self.token_cursor.stack[prev].last_token
@@ -7686,8 +7687,8 @@ impl<'a> Parser<'a> {
76867687
debug!("collect_tokens: {}", msg);
76877688
self.sess.span_diagnostic.delay_span_bug(self.token.span, &msg);
76887689
// This can happen due to a bad interaction of two unrelated recovery mechanisms
7689-
// with mismatched delimiters *and* recovery lookahead on `pub ident(` likely typo
7690-
// (#62895, different but similar to the case above)
7690+
// with mismatched delimiters *and* recovery lookahead on the likely typo
7691+
// `pub ident(` (#62895, different but similar to the case above).
76917692
return Ok((ret?, TokenStream::new(vec![])));
76927693
}
76937694
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)