Skip to content

rustc_expand: improve diagnostics for non-repeatable metavars#152679

Open
Unique-Usman wants to merge 2 commits intorust-lang:mainfrom
Unique-Usman:ua/decmacrounrepeatable
Open

rustc_expand: improve diagnostics for non-repeatable metavars#152679
Unique-Usman wants to merge 2 commits intorust-lang:mainfrom
Unique-Usman:ua/decmacrounrepeatable

Conversation

@Unique-Usman
Copy link
Contributor

No description provided.

…tition

Enhance `NoSyntaxVarsExprRepeat` by suggesting similarly named
metavariables, distinguishing repeatable vs non-repeatable bindings,
and listing available repeatable variables when no match exists.

Co-authored-by: Esteban Küber <esteban@kuber.com.ar>
Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
@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 Feb 15, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 15, 2026

r? @BoxyUwU

rustbot has assigned @BoxyUwU.
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 68 candidates
  • Random selection from 14 candidates

@Unique-Usman
Copy link
Contributor Author

r? @estebank

@rustbot rustbot assigned estebank and unassigned BoxyUwU Feb 15, 2026
@Unique-Usman
Copy link
Contributor Author

This is rebased on top of ->791ee34

@rust-log-analyzer

This comment has been minimized.

Co-authored-by: Esteban Küber <esteban@kuber.com.ar>
Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
@Unique-Usman Unique-Usman force-pushed the ua/decmacrounrepeatable branch from 0fbe120 to 81f68bb Compare February 15, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants