Uh oh!
There was an error while loading. Please reload this page.
Implement trait aliases (RFC 1733) - #55101
Conversation
rust-highfive
commented
Oct 15, 2018
r? @zackmdavis (rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
alexreg
commented
Oct 15, 2018
@petrochenkov Don't even bother reviewing yet. A lot of work to go. I'll let you know when things are at a decent stage. :-) I think @nikomatsakis is going to comment with some more guidance shortly. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
This should just return vec!. Trait aliases do not define any associated items themselves. The associated item resolution code does have a notion of walking the superpredicates when doing lookups, I would think we should build on that.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
@nikomatsakis Okay, I'm making decent headway now I think. Any advice on writing |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
alexreg
commented
Oct 18, 2018
@nikomatsakis Great. I’ll fix that quickly, but it’s basically already working fine. Any advice on trait objects? :-) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
alexreg
commented
Oct 23, 2018
@nikomatsakis As long as you're happy with things now, LGTM! |
nikomatsakis
left a comment
There was a problem hiding this comment.
Somehow I expected a bit more on trait objects, but actually I can imagine how what you have would work! Nice! My main comment is that I'd like to see more exhaustive tests. I'll leave a comment below.
Uh oh!
There was an error while loading. Please reload this page.
This looks awesome. I went through the RFC and drew up a list of tests covering everything that I saw in there. Do you think you could check whether all of these scenarios are being tested, and add those that are not? Here is the list, inlined for convenience: Things to test:
|
nikomatsakis
commented
Oct 23, 2018
Also, I think it'd be ideal to put all the trait-alias tests in a directory like |
alexreg
commented
Oct 23, 2018
Sure. Should test names still be prefixed with |
alexreg
commented
Oct 23, 2018
Looks good. We already test most of these, but I'll go ensure they're all there now. Thanks for making the list.
|
bors
commented
Nov 2, 2018
Centril
commented
Nov 2, 2018
This comment has been minimized.
This comment has been minimized.
oli-obk
commented
Nov 2, 2018
@bors r- |
emilyalbini
commented
Nov 2, 2018
@bors retry r- |
oli-obk
commented
Nov 3, 2018
bors
commented
Nov 3, 2018
📌 Commit 4171685 has been approved by |
bors
commented
Nov 3, 2018
Implement trait aliases (RFC 1733) Extends groundwork done in #45047, and fully implements rust-lang/rfcs#1733. CC @durka@nikomatsakis
bors
commented
Nov 3, 2018
☀️ Test successful - status-appveyor, status-travis |
Extends groundwork done in #45047, and fully implements rust-lang/rfcs#1733.
CC @durka@nikomatsakis