Implement Receiver for Exclusive#146009
Implement Receiver for Exclusive#146009Jules-Bertholet wants to merge 2 commits intorust-lang:masterfrom
Receiver for Exclusive#146009Conversation
In the hope of being able to implement `DerefMut` in the future. Changes `Exclusive`'s methods to associated functions.
library/core/src/sync/exclusive.rs
Outdated
| } | ||
| } | ||
|
|
||
| // FIXME: implement `DerefMut` when this becomes possible |
There was a problem hiding this comment.
It isn't immediately obvious how/why this is blocked and what would make it possible, could you link to your comment explaining it on the tracking issue?
|
Nominated for libs-api #98407 (comment) |
|
☔ The latest upstream changes (presumably #147128) made this pull request unmergeable. Please resolve the merge conflicts. |
|
We talked about this again in today's @rust-lang/libs-api meeting. It doesn't seem like trying to work towards If in the future we want to make this work with arbitrary self types, or if the idea of doing Is there another reason to add this in advance, given that it's an unstable trait being implemented for an unstable type? |
In the hope of being able to implement
DerefMutin the future.Changes
Exclusive's methods to associated functions.cc #98407
@rustbot label T-libs-api