Make split_whitespace use split_terminator#49818
Make split_whitespace use split_terminator#49818clarfonthey wants to merge 16 commits intorust-lang:masterfrom
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_whitspacewas 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.