-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Conversation
Still running make check locally. |
…eter to contain either a local type or a type parameter must contain only covered type parameters.
7699b5a
to
ecaa687
Compare
OK, tweaked a few tests, should pass make check now (though the last few bits are still running). |
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? |
@aturon I felt they were vague enough to still be accurate, but I'm open to suggestions. |
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 |
@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. |
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