-
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
Remove str::is_whitespace and str::is_alphanumeric #49657
Comments
Strongly prefer to have this method (unsurprisngly). I assumed it was an oversight that it was missing; I've probably tried |
We could add a system to be able to add suggestions to missing method errors. Thus the use of Deleting these methods should of course not be blocked on such a system being in place |
@oli-obk I like this idea a lot! (independently from this discussion) About println!("{}", "böb".chars().all(char::is_alphanumeric)); // true
println!("{}", "böb".chars().all(char::is_alphanumeric)); // false The second string uses a Combining Diaeresis with an I think If you are interested, I did a bit of research how
Maybe |
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
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
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
These methods were added as stable in #49381 (currently in beta for 1.27.0) but we would prefer not to add them as discussed in #49381 (comment).
The text was updated successfully, but these errors were encountered: