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

Type inference for struct field via function bound #975

Merged
merged 2 commits into from
Oct 20, 2018

Conversation

kngwyu
Copy link
Collaborator

@kngwyu kngwyu commented Oct 19, 2018

Enables

impl<T: Clone> S<T> {
    fn f(self) {
        let b = a.mem.clo~
    } 
}

In addition, this PR removes FnArgTypeVisitor.
Currently we parse function twice for getting ident and getting type, which makes code too complicated.
So in this PR, I changed to parse function only once.

@kngwyu kngwyu mentioned this pull request Oct 20, 2018
14 tasks
@kngwyu kngwyu merged commit 7b716ce into racer-rust:master Oct 20, 2018
@kngwyu kngwyu deleted the struct-bounded-in-fn branch October 20, 2018 03:49
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.

1 participant