Skip to content

Conversation

joshtriplett
Copy link
Member

A few simplifications and refactors in advance of other work.

Macro metavariable expressions were using Ident::as_str and doing string
comparisons; I converted them to use symbols.

I factored out a function for transcribing a ParseNtResult, which will help
separate the evaluation and transcription of future macro metavariable
expressions.

Factor out the check for a variable that's still repeating.
Identify metavariable functions by using named symbols rather than
string comparisons.
@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 20, 2025
@rustbot
Copy link
Collaborator

rustbot commented Sep 20, 2025

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

@joshtriplett
Copy link
Member Author

r? @petrochenkov

@rustbot rustbot assigned petrochenkov and unassigned jackh726 Sep 20, 2025
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.

4 participants