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

Move FulfillmentContext out of InferCtxt #31588

Merged
merged 2 commits into from
Feb 13, 2016
Merged

Conversation

soltanmm
Copy link

context: moving back to a layered approach to type checking.

It looks like they'd not ended up tightly coupled in the time one was owned by the other. Every instance outside of FnCtxt.inh was from an InferCtxt created and dropped in the same function body.

This conflicts slightly with #30652, but there too it looks like the FulfillmentContext is from an InferCtxt that is created and dropped within the same function body (across one call to a module-private function).

That said, I heard that the PR that originally moved FulfillmentContext into InferCtxt was big, which leaves me concerned that I'm missing something.

r? @nikomatsakis

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@nikomatsakis
Copy link
Contributor

cc @jroesch

@nikomatsakis
Copy link
Contributor

Very nice @soltanmm. It's true that the PR that moved it out was big, but I think it was doing other things at the same time. In any case, I don't think you're missing anything.

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Feb 12, 2016

📌 Commit 0ff7021 has been approved by nikomatsakis

@bors
Copy link
Contributor

bors commented Feb 13, 2016

⌛ Testing commit 0ff7021 with merge 4b72450...

bors added a commit that referenced this pull request Feb 13, 2016
<sup>**context:** moving back to a layered approach to type checking.</sup>

It looks like they'd not ended up tightly coupled in the time one was owned by the other. Every instance outside of `FnCtxt.inh` was from an `InferCtxt` created and dropped in the same function body.

This conflicts slightly with #30652, but there too it looks like the `FulfillmentContext` is from an `InferCtxt` that is created and dropped within the same function body (across one call to a module-private function).

That said, I heard that the PR that originally moved `FulfillmentContext` into `InferCtxt` was big, which leaves me concerned that I'm missing something.

r? @nikomatsakis
@bors bors merged commit 0ff7021 into rust-lang:master Feb 13, 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.

5 participants