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

When elaborating predicates, purge duplicates from the initial vector. #21968

Merged

Conversation

nikomatsakis
Copy link
Contributor

We were already building a hashset to check for duplicates, but we assumed that the initial vector had no duplicates. Fixes #21965.

r? @pnkfelix

@pnkfelix
Copy link
Member

pnkfelix commented Feb 5, 2015

@bors: r+ be8d9bb

…move this overeager code that was pruning out ambig where-clause matches in trait selection. cc rust-lang#21974.
@nikomatsakis
Copy link
Contributor Author

@pnkfelix I added 2 more commits to this

@pnkfelix
Copy link
Member

pnkfelix commented Feb 5, 2015

@bors: r+ bbf0898

Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 6, 2015
…preds-in-env, r=pnkfelix

 We were already building a hashset to check for duplicates, but we assumed that the initial vector had no duplicates. Fixes rust-lang#21965.

r? @pnkfelix
@bors bors merged commit bbf0898 into rust-lang:master Feb 7, 2015
@nikomatsakis nikomatsakis deleted the issue-21965-duplicate-preds-in-env branch March 30, 2016 16:14
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.

Duplicate predicates cause ambiguities when normalized associated types
3 participants