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

Add trait obligations for where clauses when calling functions/methods #1496

Merged
merged 2 commits into from Jul 6, 2019

Conversation

@flodiebold
Copy link
Collaborator

commented Jul 6, 2019

E.g. if we call foo<T: Into<u32>>(x), that adds an obligation that x: Into<u32>, etc., which sometimes allows type inference to make further progress.

flodiebold added some commits Jul 6, 2019

Add trait obligations for where clauses when calling functions/methods
E.g. if we call `foo<T: Into<u32>>(x)`, that adds an obligation that `x:
Into<u32>`, etc.

@flodiebold flodiebold requested a review from matklad Jul 6, 2019

@matklad

This comment has been minimized.

Copy link
Collaborator

commented Jul 6, 2019

bors r+

bors bot added a commit that referenced this pull request Jul 6, 2019

Merge #1496
1496: Add trait obligations for where clauses when calling functions/methods r=matklad a=flodiebold

E.g. if we call `foo<T: Into<u32>>(x)`, that adds an obligation that `x: Into<u32>`, etc., which sometimes allows type inference to make further progress.

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
@bors

This comment has been minimized.

Copy link
Contributor

commented Jul 6, 2019

@bors bors bot merged commit f854a29 into rust-analyzer:master Jul 6, 2019

2 checks passed

bors Build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.