Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTracking issue for `ToOwned::clone_into` (`toowned_clone_into`) #41263
Comments
scottmcm
referenced this issue
Apr 13, 2017
Merged
Add a resource-reusing method to `ToOwned` #41009
alexcrichton
added
B-unstable
T-libs
labels
Apr 13, 2017
Mark-Simulacrum
added
the
C-tracking-issue
label
Jul 22, 2017
This comment has been minimized.
This comment has been minimized.
|
In nightly for 11 months with no reported issues since. Let’s stabilize. @rfcbot fcp merge |
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Mar 17, 2018
•
|
Team member @SimonSapin has proposed to merge this. The next step is review by the rest of the tagged teams: No concerns currently listed. Once a majority of reviewers approve (and none object), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
rfcbot
added
proposed-final-comment-period
final-comment-period
and removed
proposed-final-comment-period
labels
Mar 17, 2018
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Mar 19, 2018
|
|
This comment has been minimized.
This comment has been minimized.
|
Hmm, I was bad at creating tracking issues a year ago This is sufficient, but still feels suboptimal for the reasons from #41009 (comment):
Any good ideas? Edit: Hmm, maybe once we flatten the facade (since |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Mar 29, 2018
|
The final comment period is now complete. |
This comment has been minimized.
This comment has been minimized.
|
@alexcrichton rfcbot did not register the concern :) (the syntax you used is accepted nowadays however..) |
This comment has been minimized.
This comment has been minimized.
|
I feel bad seeing this in TWiR every week now. Anything I can do to help it get somewhere productive? |
kennytm
added
the
I-nominated
label
Jul 18, 2018
This comment has been minimized.
This comment has been minimized.
|
Nominating for discussion (how to address the concern raised in #41263 (comment)). ↑. |
This comment has been minimized.
This comment has been minimized.
|
It looks like this still needs some API some design work, so we’re not actually ready to stabilize. @rfcbot fcp cancel This probably needs someone to champion a new API proposal. |
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Aug 1, 2018
|
@SimonSapin proposal cancelled. |
scottmcm commentedApr 13, 2017
•
edited
Feature added in PR #41009
Questions raised in the PR:
The directionality is weird. In clone_from and assignment, the data moves right-to-left, but this moves it left-to-right. And that means that autoref doesn't work well, usually forcing you to write &mut.
But fixing that would mean putting it somewhere else, since the Self in ToOwned is the wrong type for what this needs to be. And moving it while still being overridable and providing a default is hard.