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

Update the coherence rules to "covered first" #21792

Merged
merged 2 commits into from
Feb 1, 2015

Conversation

nikomatsakis
Copy link
Contributor

Update the coherence rules to "covered first" -- the first type parameter to contain either a local type or a type parameter must contain only covered type parameters.

cc #19470.
Fixes #20974.
Fixes #20749.

r? @aturon

@nikomatsakis
Copy link
Contributor Author

Still running make check locally.

…eter to contain either a local type or a type parameter must contain only covered type parameters.
@nikomatsakis
Copy link
Contributor Author

OK, tweaked a few tests, should pass make check now (though the last few bits are still running).

@aturon
Copy link
Member

aturon commented Jan 31, 2015

Looks good. One question: presumably the error messages need to be updated to clarify the new rule? Unless they were vague enough before that they accurately describe the new rule as well?

@nikomatsakis
Copy link
Contributor Author

@aturon I felt they were vague enough to still be accurate, but I'm open to suggestions.

@nikomatsakis
Copy link
Contributor Author

@nikomatsakis
Copy link
Contributor Author

Well, you were correct that one of them at least was outdated. (In fact, I had fixed that message, but as part of a commit removing old-orphan-check that I was forced to back out.) Good catch!

@nikomatsakis
Copy link
Contributor Author

@bors r=aturon 2c2879b

@nikomatsakis
Copy link
Contributor Author

@aturon I interpreted that as r+ and decided to take advantage of a quiet moment in the bors queue. If we want to tweak error messages further we can always do so.

@bors
Copy link
Contributor

bors commented Feb 1, 2015

⌛ Testing commit 2c2879b with merge e8489d3...

bors added a commit that referenced this pull request Feb 1, 2015
Update the coherence rules to "covered first" -- the first type parameter to contain either a local type or a type parameter must contain only covered type parameters.

cc #19470.
Fixes #20974.
Fixes #20749.

r? @aturon
@bors bors merged commit 2c2879b into rust-lang:master Feb 1, 2015
@nikomatsakis nikomatsakis deleted the orphan-ordered-first branch March 30, 2016 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants