Skip to content

clean up trans_static_method_callee and friends#31072

Merged
bors merged 2 commits into
rust-lang:masterfrom
arielb1:method-callee-cleanup
Jan 22, 2016
Merged

clean up trans_static_method_callee and friends#31072
bors merged 2 commits into
rust-lang:masterfrom
arielb1:method-callee-cleanup

Conversation

@arielb1

@arielb1 arielb1 commented Jan 21, 2016

Copy link
Copy Markdown
Contributor

The old code was terribly ugly and was duplicated in several places.

r? @michaelwoerister

@arielb1 arielb1 force-pushed the method-callee-cleanup branch from 981afa7 to 29c296f Compare January 21, 2016 13:05
@michaelwoerister

Copy link
Copy Markdown
Member

I'll take a look at it ASAP.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovely!

@michaelwoerister

Copy link
Copy Markdown
Member

Very nice work! Much cleaner indeed.

Is there a specific reason you don't erase regions in some of the cases anymore? It probably doesn't matter most of the time, since the consumer of the Substs arguments will take care of erasing regions itself. A comment would be nice though.

r=me when you have taken care of that empty FIXME.

@arielb1

arielb1 commented Jan 21, 2016

Copy link
Copy Markdown
Contributor Author

fixed that

@arielb1

arielb1 commented Jan 21, 2016

Copy link
Copy Markdown
Contributor Author

We don't need to erase regions again because fulfill_obligation (in fact, infer::drain_fulfillment_cx) erases them for us.

@arielb1

arielb1 commented Jan 21, 2016

Copy link
Copy Markdown
Contributor Author

@bors r=michaelwoerister

@bors

bors commented Jan 21, 2016

Copy link
Copy Markdown
Collaborator

📌 Commit 0a01d0b has been approved by michaelwoerister

@bors

bors commented Jan 22, 2016

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 0a01d0b with merge b4a2579...

bors added a commit that referenced this pull request Jan 22, 2016
The old code was terribly ugly and was duplicated in several places.

r? @michaelwoerister
@bors bors merged commit 0a01d0b into rust-lang:master Jan 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants