-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 Option::copied #57126
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The |
So we added a newtype fn copied<'a, T>(self) -> Cloned<Self> where
Self: Iterator<Item = &'a T>,
T: 'a + Copy, Are there notable reasons not to do this that I'm missing? Doing so would substantially decrease the cost of this feature for the standard library. |
Although I suppose we currently DO expose specialization in |
See #57970. |
Team member @SimonSapin 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 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. 🔔 |
The final comment period, with a disposition to merge, as per the review above, is now complete. |
Am I correct that this now awaits for a stabilization PR? |
Yes. |
Stabilization PR is up: #59231 |
Stabilize Option::copied closes rust-lang#57126
This is a tracking issue for
Option::copied
.Added in #56534. Feature gate:
#![feature(copied)]
.Related feature:
iter_copied
in #57127.The text was updated successfully, but these errors were encountered: