-
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
Make split_whitespace use split_terminator #49818
Conversation
And the UnicodeStr trait into StrExt
r? @cramertj (rust_highfive has picked a reviewer for you, use r? to override) |
Your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. 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 |
println!("{:?}", " a b c ".split_whitespace().collect::<Vec<&str>>());
println!("{:?}", " a b c ".split_terminator(char::is_whitespace).collect::<Vec<&str>>()); prints:
|
r? @SimonSapin |
As @ollie27 said, it looks like the premise of this change is not valid. @clarcharr, are we missing something? |
☔ The latest upstream changes (presumably #49715) made this pull request unmergeable. Please resolve the merge conflicts. |
I honestly don't know why I misread the usage of |
Presumably, this method didn't exist when
split_whitspace
was originally written, but this helps reduce code complexity a little. This is rebased on top of #49698 to avoid merge conflicts; when reviewing this, specifically look at the changes made in clarfonthey/rust@8b8ae47a to avoid the noise.