Skip to content

Fix multiple pattern comma suggestions in diagnostics - #163245

Merged
rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
chenyukang:yukang-fix-multiple-pattern-comma-suggestion
Nov 2, 2026
Merged

rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
chenyukang:yukang-fix-multiple-pattern-comma-suggestion

Conversation

@chenyukang

Copy link
Copy Markdown
Member

skip_pat_list and recover_unexpected_comma is on cold path,
so there will be no perf issue here.

@rustbot

rustbot commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

The parser was modified, potentially altering the grammar of (stable) Rust
which would be a breaking change.

cc @fmease

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Sep 24, 2026
@rustbot

rustbot commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

r? @jackh726

rustbot has assigned @jackh726.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 77 candidates
  • Random selection from 20 candidates

@fmease fmease left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rust-bors

rust-bors Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 06b6926 has been approved by fmease

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 2, 2026
@fmease fmease assigned fmease and unassigned jackh726 Nov 2, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Nov 2, 2026
…tern-comma-suggestion, r=fmease

Fix multiple pattern comma suggestions in diagnostics

`skip_pat_list` and `recover_unexpected_comma` is on cold path,
so there will be no perf issue here.
rust-bors Bot pushed a commit that referenced this pull request Nov 2, 2026
Rollup of 9 pull requests

Successful merges:

 - #162018 (Recover inner attributes in algebraic data types)
 - #162819 (Make the suggestion message of `unused_must_use` scarier.)
 - #163053 (Use verbose suggestion for type literal with wrong syntax)
 - #163245 (Fix multiple pattern comma suggestions in diagnostics)
 - #163369 (Don't lint unused_qualifications when the unqualified path is ambiguous)
 - #165282 (Improve span for unused_mut lint)
 - #165285 (Forward `AbiAlign` `Debug` impl to `Align`)
 - #165294 (unstable.rs: add missing `]` in description of `cfg_ub_checks`)
 - #165310 (Clarify AGENTS.md around pushing to a fork)
@rust-bors
rust-bors Bot merged commit bcb9583 into rust-lang:main Nov 2, 2026
13 checks passed
@rustbot rustbot added this to the 1.101.0 milestone Nov 2, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 2, 2026
Rollup merge of #163245 - chenyukang:yukang-fix-multiple-pattern-comma-suggestion, r=fmease

Fix multiple pattern comma suggestions in diagnostics

`skip_pat_list` and `recover_unexpected_comma` is on cold path,
so there will be no perf issue here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants