Rollup merge of #101502 - TaKO8Ki:do-not-suggest-semicolon-for-macro-without-exclamation-mark, r=wesleywiser
Do not suggest a semicolon for a macro without `!` Fixes a regression in #101490
This commit is contained in:
commit
c365ce3ffd
8 changed files with 16 additions and 2 deletions
|
@ -1977,6 +1977,9 @@ impl<'a> Parser<'a> {
|
|||
open_delim_span: Span,
|
||||
) -> PResult<'a, ()> {
|
||||
if self.token.kind == token::Comma {
|
||||
if !self.sess.source_map().is_multiline(prev_span.until(self.token.span)) {
|
||||
return Ok(());
|
||||
}
|
||||
let mut snapshot = self.create_snapshot_for_diagnostic();
|
||||
snapshot.bump();
|
||||
match snapshot.parse_seq_to_before_end(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue