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

[MIR] Factor mir::[Mut]Visitor implementations into a common macro. #30757

Merged
merged 1 commit into from
Jan 8, 2016

Conversation

michaelwoerister
Copy link
Member

After a call to visit_def_id() missing in mir::visit::Visitor but not mir::visit::MutVisitor has caused me a couple hours of error hunting, I decided I'd take the time to get rid of the code duplication between the two implementations.

cc @rust-lang/compiler

@michaelwoerister michaelwoerister added the A-MIR Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html label Jan 7, 2016
@rust-highfive
Copy link
Collaborator

r? @jroesch

(rust_highfive has picked a reviewer for you, use r? to override)

@jroesch
Copy link
Member

jroesch commented Jan 7, 2016

Looks good to me, I really wish we had a way to abstract over mutability.

@jroesch
Copy link
Member

jroesch commented Jan 7, 2016

@bors r+

@bors
Copy link
Contributor

bors commented Jan 7, 2016

📌 Commit 8f51188 has been approved by jroesch

@bors
Copy link
Contributor

bors commented Jan 7, 2016

⌛ Testing commit 8f51188 with merge 64a8ffe...

bors added a commit that referenced this pull request Jan 7, 2016
After a call to `visit_def_id()` missing in `mir::visit::Visitor` but not `mir::visit::MutVisitor` has caused me a couple hours of error hunting, I decided I'd take the time to get rid of the code duplication between the two implementations.

cc @rust-lang/compiler
@bors bors merged commit 8f51188 into rust-lang:master Jan 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-MIR Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants