-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Plumb inference obligations through librustc/middle and librustc_typeck, take 2 #31867
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
Conversation
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. |
I like this approach a lot better as well, looks much cleaner. |
@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 Up to y'all whether it should be on this PR or if a firewall should be set where the PR currently is. |
☔ The latest upstream changes (presumably #31979) made this pull request unmergeable. Please resolve the merge conflicts. |
@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. |
Closing in favor of #32542... |
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
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
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 PRUnitResult
as opposed toInferResult
).r? @nikomatsakis