Skip to content

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
Contributor

r? @jroesch

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

@jroesch
Copy link
Contributor

jroesch commented Jan 7, 2016

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

@jroesch
Copy link
Contributor

jroesch commented Jan 7, 2016

@bors r+

@bors
Copy link
Collaborator

bors commented Jan 7, 2016

📌 Commit 8f51188 has been approved by jroesch

@bors
Copy link
Collaborator

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