-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Make associated type defaults closer to the spec #26728
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
Conversation
if let Some(at) = overriden_associated_type { | ||
span_note!(tcx.sess, at.span, | ||
"an overriden associated type \ | ||
requires reimplementations of all trait-items"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This error message could be much more helpful - showing what caused the problem and what needs to be fixed. Happy to see that as follow-up rather than doing it now, but please file an issue and add a FIXME here.
Code looks good. I thought we were going to make this a warning at first? Is this not the breaking change we discussed on irc? |
0d1c66e
to
4f165c3
Compare
Updated. |
@bors: r+ |
📌 Commit 4f165c3 has been approved by |
⌛ Testing commit 4f165c3 with merge 5e54df3... |
💔 Test failed - auto-win-gnu-64-opt |
…pe is overriden This is a [breaking-change] but it follows the RFC (not sure whether it will be accepted).
@bors r=nrc Reassigned error # |
📌 Commit 6b27005 has been approved by |
…ave to be overridden. Since rust-lang/rust#26728 , Servo would get build errors like: error: the following trait items need to be reimplemented as `AtRule` was overridden: `rule_without_block` [E0399] type AtRule = CSSRule; ^~~~~~~~~~~~~~~~~~~~~~
Which RFC? Link? |
I see.. the original rust-lang/rfcs#195. |
Not accepted for backporting to 1.2. After discussing with @nikomatsakis we're going to instead backport a patch to feature-gate default type parameters because there are still open questions about how they should work. |
r? @nrc