-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Stabilize is_partitioned #80085
Stabilize is_partitioned #80085
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @m-ou-se (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
/// assert!("Iterator".chars().is_partitioned(char::is_uppercase)); | ||
/// assert!(!"IntoIterator".chars().is_partitioned(char::is_uppercase)); | ||
/// ``` | ||
#[unstable(feature = "iter_is_partitioned", reason = "new API", issue = "62544")] | ||
#[stable(feature = "iter_is_partitioned", since = "1.49.0")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.49 is already in beta and 1.50 is going to be in beta soon, so this should probably be 1.51.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed
@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. |
I've looked at the various linked issues but didn't see any motivating use cases for this routine. cc @cuviper |
My own motivation was just that someone asked for partitioning like C++ |
I don't personally need it either. My motivation for this PR was also someone else. They were wondering why it was not stabilized, as there had been no activity on the tracking issue for almost 1.5 years. I've told the person to comment here. |
Thinking a bit more about this, I suppose that pretty much all use cases of this function are also covered by |
I've added the unresolved questions to the tracking issue. Cancelling the FCP for now, as we first need to discuss/resolve those. @rfcbot cancel |
@m-ou-se proposal cancelled. |
Let's continue the discussion on the tracking issue. Thanks! |
Closes #62544