-
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
Tweak some stabilizations in libstd #50088
Conversation
r? @sfackler |
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 |
This commit tweaks a few stable APIs in the `beta` branch before they hit stable. The `str::is_whitespace` and `str::is_alphanumeric` functions were deleted (added in rust-lang#49381, issue at rust-lang#49657). The `and_modify` APIs added in rust-lang#44734 were altered to take a `FnOnce` closure rather than a `FnMut` closure. Closes rust-lang#49581 Closes rust-lang#49657
743ed79
to
ca79ba3
Compare
/// ``` | ||
#[stable(feature = "unicode_methods_on_intrinsics", since = "1.27.0")] | ||
#[inline] | ||
pub fn is_whitespace(&self) -> bool { |
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.
Should we be destabilizing and deprecating these for a bit? Not sure if they've been around and unstable previously.
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.
I'd be ok with that as well yeah, or perhaps just reverting these to unstable? I'm fine either way, they were added insta-stable in #49381 and haven't been around for all that long so I don't think we need too too much process
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.
Oh cool if they're new then it seems fine to just remove.
@bors r+ |
📌 Commit ca79ba3 has been approved by |
@bors: p=1 (as this is beta-nominated) |
Tweak some stabilizations in libstd This commit tweaks a few stable APIs in the `beta` branch before they hit stable. The `str::is_whitespace` and `str::is_alphanumeric` functions were deleted (added in #49381, issue at #49657). The `and_modify` APIs added in #44734 were altered to take a `FnOnce` closure rather than a `FnMut` closure. Closes #49581 Closes #49657
☀️ Test successful - status-appveyor, status-travis |
[beta] Tweak some stabilizations in libstd This is a backport of #50088
This commit tweaks a few stable APIs in the
beta
branch before they hitstable. The
str::is_whitespace
andstr::is_alphanumeric
functions weredeleted (added in #49381, issue at #49657). The
and_modify
APIs addedin #44734 were altered to take a
FnOnce
closure rather than aFnMut
closure.Closes #49581
Closes #49657