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

Plumb inference obligations through librustc/middle and librustc_typeck, take 2 #31867

Closed
wants to merge 11 commits into from

Conversation

soltanmm
Copy link

Next time I'm just going to ask what @nikomatsakis intends to do for a task; it seems to end up cleaner every time. :-)

I'm unsure whether some places should or should not be propagating obligations (namely locations in infer/mod.rs that return in this PR UnitResult as opposed to InferResult).

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.

@jroesch
Copy link
Member

jroesch commented Feb 26, 2016

I like this approach a lot better as well, looks much cleaner.

@soltanmm
Copy link
Author

@jroesch Woo! Let's hope you still think that after seeing e6a9f7e.

@nikomatsakis You probably want to take a look as well at e6a9f7e. It propagates obligations through select.rs and cascades into librustc_trans, a lint, and an absurdist joke.

Up to y'all whether it should be on this PR or if a firewall should be set where the PR currently is.

@bors
Copy link
Contributor

bors commented Mar 3, 2016

☔ The latest upstream changes (presumably #31979) made this pull request unmergeable. Please resolve the merge conflicts.

@nikomatsakis
Copy link
Contributor

@soltanmm I've been playing with this branch (and also making a few changes here and there). Feeling very good about this direction right now.

@soltanmm
Copy link
Author

Closing in favor of #32542...

@soltanmm soltanmm closed this Mar 28, 2016
bors added a commit that referenced this pull request Mar 29, 2016
Refactor s.t. TypeRelation implementors in `infer` don't escape InferCtxt

Some clean-up so that we can go back to the future of #31867 as opposed to #32542.

r? @nikomatsakis
Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 5, 2016
Plumb obligations through librustc/infer

Like rust-lang#32542, but more like rust-lang#31867.

TODO before merge: make an issue for the propagation of obligations through... uh, everywhere... then replace the `#????`s with the actual issue number.

cc @jroesch
r? @nikomatsakis
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.

6 participants