Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand Macro Recursively: don't append "!" to non-bang macro name #14468

Merged
merged 1 commit into from
Apr 2, 2023

Conversation

lowr
Copy link
Contributor

@lowr lowr commented Apr 2, 2023

When we run Expand Macro Recursively, we prepend a comment "Recursive expansion of foo! macro" to the expansion result. I've noticed we unconditionally render the macro name with "!" and, while super subtle, I feel a bit awkward when the macro is either a derive or attribute macro.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 2, 2023
@Veykril
Copy link
Member

Veykril commented Apr 2, 2023

@bors r+

@bors
Copy link
Contributor

bors commented Apr 2, 2023

📌 Commit 613e008 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Apr 2, 2023

⌛ Testing commit 613e008 with merge 2365762...

@bors
Copy link
Contributor

bors commented Apr 2, 2023

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 2365762 to master...

@bors bors merged commit 2365762 into rust-lang:master Apr 2, 2023
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants