Uh oh!
There was an error while loading. Please reload this page.
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
commented
Apr 30, 2017
(rust_highfive has picked a reviewer for you, use r? to override) |
bluss
commented
Apr 30, 2017
It's not pretty but I think it's OK to use this long kind of implementation due to its positive features. |
arielb1
commented
May 2, 2017
r? @aturon |
arielb1
commented
May 2, 2017
nikomatsakis
commented
May 2, 2017
cc @rust-lang/libs (code seems fine to me; and I can't see any reason that this iterator shouldn't be iterable...) |
alexcrichton
commented
May 3, 2017
@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. |
aturon
commented
May 5, 2017
LGTM. r=me once libs has signed off (new stable addition to std). |
aturon
commented
May 9, 2017
@bors: r+ |
bors
commented
May 9, 2017
📌 Commit 41aeb9d has been approved by |
rfcbot
commented
May 9, 2017
🔔 This is now entering its final comment period, as per the review above. 🔔 |
bors
commented
May 10, 2017
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
bors
commented
May 10, 2017
☀️ 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