Skip to content

introduce common macro for MutVisitor and Visitor to dedup code #141249

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

Merged
merged 1 commit into from
May 19, 2025

Conversation

fee1-dead
Copy link
Member

helps with #127615.

I can do everything in one go but I figured it might be worth it to open a PR first for vibeck.

r? oli-obk

@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 May 19, 2025
@oli-obk
Copy link
Contributor

oli-obk commented May 19, 2025

yea, generating functions for both visitors even though they are only used by one of the visitors is fine. Doing it in steps is also good.

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented May 19, 2025

📌 Commit c5bab6e has been approved by oli-obk

It is now in the queue for this repository.

@bors bors 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 May 19, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request May 19, 2025
…iaskrgr

Rollup of 6 pull requests

Successful merges:

 - rust-lang#131200 (Handle `rustc_query_system` cases of `rustc::potential_query_instability` lint)
 - rust-lang#141244 (windows: document that we rely on an undocumented property of GetUserProfileDirectoryW)
 - rust-lang#141247 (skip compiler tools sanity checks on certain commands)
 - rust-lang#141248 (fix data race in ReentrantLock fallback for targets without 64bit atomics)
 - rust-lang#141249 (introduce common macro for `MutVisitor` and `Visitor` to dedup code)
 - rust-lang#141253 (Warning added when dependency crate has async drop types, and the feature is disabled)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 421230f into rust-lang:master May 19, 2025
6 checks passed
@rustbot rustbot added this to the 1.89.0 milestone May 19, 2025
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request May 19, 2025
Rollup merge of rust-lang#141249 - fee1-dead-contrib:push-mwxxsvrsotvs, r=oli-obk

introduce common macro for `MutVisitor` and `Visitor` to dedup code

helps with rust-lang#127615.

I can do everything in one go but I figured it might be worth it to open a PR first for vibeck.

r? oli-obk
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