-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Tracking issue for ToOwned::clone_into
(toowned_clone_into
)
#41263
Comments
In nightly for 11 months with no reported issues since. Let’s stabilize. @rfcbot fcp merge |
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. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
Hmm, I was bad at creating tracking issues a year ago 😅 (fixed) 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 |
The final comment period is now complete. |
@alexcrichton rfcbot did not register the concern :) (the syntax you used is accepted nowadays however..) |
I feel bad seeing this in TWiR every week now. Anything I can do to help it get somewhere productive? |
Nominating for discussion (how to address the concern raised in #41263 (comment)). ↑. |
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. |
@SimonSapin proposal cancelled. |
This was discussed in the libs-api meeting just now. We discussed how this method is used in Cow's clone_from implementation, and how that seems to be a good reason to stabilize this function and allow others to imlement it. @rfcbot merge |
Team member @m-ou-se has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), 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. |
Friendly one-month pFCP ping, @Amanieu @BurntSushi @joshtriplett |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. This will be merged soon. |
…olnay Stabilize `toowned_clone_into` Closes #41263 FCP has been done: rust-lang/rust#41263 (comment)
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.
The text was updated successfully, but these errors were encountered: