-
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
Implement str::split_at (RFC 1123) #25839
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aturon (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. 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 CONTRIBUTING.md for more information. |
Please see the RFC: rust-lang/rfcs#1123. It is not yet accepted. Tacked on
|
Looks good to me, thanks @bluss! |
☔ The latest upstream changes (presumably #26065) made this pull request unmergeable. Please resolve the merge conflicts. |
Rebased, tossed the inlining commit. |
Turning this into the tracking issue for rust-lang/rfcs#1123. Thanks again @bluss! @bors: r+ 37bbcc3 |
☀️ |
⌛ Testing commit 37bbcc3 with merge 5294ccc... |
💔 Test failed - auto-mac-64-opt |
Implement RFC rust-lang/rfcs#1123 Add str method str::split_at(mid: usize) -> (&str, &str).
This is a remnant from a previous implementation of the str methods. Using `self` is fine now.
Fixed the doc example, sorry about that. |
@bors: r=alexcrichton Let's give this another go |
📌 Commit 1112a05 has been approved by |
Implement RFC rust-lang/rfcs#1123 Add str method str::split_at(mid: usize) -> (&str, &str). Also a minor cleanup in the collections::str module. Remove redundant slicing of self.
Implement RFC rust-lang/rfcs#1123
Add str method str::split_at(mid: usize) -> (&str, &str).
Also a minor cleanup in the collections::str module. Remove redundant slicing of self.