-
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
impl Clone for .split_whitespace() #41659
Conversation
Use custom closure structs for the predicates so that the iterator's clone can simply be derived. This should also reduce virtual call overhead by not using function pointers.
(rust_highfive has picked a reviewer for you, use r? to override) |
It's not pretty but I think it's OK to use this long kind of implementation due to its positive features. |
r? @aturon |
cc @rust-lang/libs (code seems fine to me; and I can't see any reason that this iterator shouldn't be iterable...) |
@rfcbot fcp merge |
Team member @alexcrichton has proposed to merge this. The next step is review by the rest of the tagged teams: No concerns currently listed. Once these reviewers reach consensus, this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
LGTM. r=me once libs has signed off (new stable addition to std). |
@bors: r+ |
📌 Commit 41aeb9d has been approved by |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
⌛ Testing commit 41aeb9d with merge 58b33ad... |
impl Clone for .split_whitespace() Use custom closure structs for the predicates so that the iterator's clone can simply be derived. This should also reduce virtual call overhead by not using function pointers. Fixes #41655
☀️ Test successful - status-appveyor, status-travis |
Use custom closure structs for the predicates so that the iterator's
clone can simply be derived. This should also reduce virtual call
overhead by not using function pointers.
Fixes #41655