Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upRFC: inherent trait implementation #2375
Conversation
This comment has been minimized.
This comment has been minimized.
newpavlov
commented
Mar 27, 2018
•
|
cc @nikomatsakis, @aturon This RFC assumes that rust-lang/rust#48444 will be treated as a feature and not as a bug. |
This comment has been minimized.
This comment has been minimized.
|
To clarify: #2309 was postponed until we figure out the story for delegation. While you talk about it a bit in this new RFC, it's not clear what in this proposal changes the situation compared to when the lang team previous took up this question. Can you expand on your thinking here? |
This comment has been minimized.
This comment has been minimized.
newpavlov
commented
Mar 27, 2018
|
I was under impression that the previous RFC was closed due to the lack of reaction from @Diggsey to add requested changes, and not postponed. (ctrl+f "postpone" yields zero results) While I agree that delegation RFC and inherent traits should be discussed together, in my opinion RFCs have orthogonal scopes and similar only in the end effect. As was shown in the text, delegation can be nicely composed with Yes, the new delegation RFC draft mentions inherent trait impls as a possible future extension, but I don't think that using |
This comment has been minimized.
This comment has been minimized.
|
@newpavlov I don't think that's an accurate assessment. The RFC was closed because:
ie. the lang team wanted a more general solution |
scottmcm
added
the
T-lang
label
Mar 28, 2018
This comment has been minimized.
This comment has been minimized.
newpavlov
commented
Mar 31, 2018
|
@Diggsey @aturon |
This comment has been minimized.
This comment has been minimized.
|
@newpavlov Sorry for the delay, was out on vacation. Yes, I think it should probably be closed for the time being, especially since there's now a delegation RFC. Would be good to revisit after Rust 2018 ships! |
newpavlov
closed this
Apr 19, 2018
This comment has been minimized.
This comment has been minimized.
|
Where's the delegation RFC? My searches failed to find anything. |
This comment has been minimized.
This comment has been minimized.
newpavlov
commented
Dec 10, 2018
This comment has been minimized.
This comment has been minimized.
newpavlov
commented
Dec 13, 2018
|
@aturon |
newpavlov commentedMar 27, 2018
•
edited
Continuation of #2309.
Fixes: #1880,#1971
This RFC allows us to write the following code:
Which allows methods from
Bartrait to be used onFooinstances without havingBarin the scope.Rendered