Skip to content

Adding Iterator Sync/Send tests for libcore/iter.rs - #26126

Merged
bors merged 1 commit into
rust-lang:masterfrom
Nashenas88:sync-send-libcore-iter
Jun 17, 2015
Merged

Adding Iterator Sync/Send tests for libcore/iter.rs#26126
bors merged 1 commit into
rust-lang:masterfrom
Nashenas88:sync-send-libcore-iter

Conversation

@Nashenas88

Copy link
Copy Markdown
Contributor

This addresses an item in #22709. SizeHint in libcore/iter.rs also implements Iterator, but it's implementation is not accessible and is only used to send size hints to extend (it appears to be a performance improvement to avoid unnecessary memory reallocations). The is the only implementation of Iterator within libcore/iter.rs that is not/cannot be tested in this PR.

@rust-highfive

Copy link
Copy Markdown
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @pcwalton (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 the contribution instructions for more information.

@Nashenas88

Copy link
Copy Markdown
Contributor Author

r? @huonw @edwardw

@Nashenas88

Copy link
Copy Markdown
Contributor Author

bump

@bluss

bluss commented Jun 13, 2015

Copy link
Copy Markdown
Contributor

looks good to me, but I'm not sure we need all the test for the iterator adaptors -- none of these use raw pointers, cc @huonw , what do you think?

@huonw

huonw commented Jun 16, 2015

Copy link
Copy Markdown
Contributor

@bors r+

I agree that we don't strictly need the tests, but it seems reasonable to double check/ensure it.

@bors

bors commented Jun 16, 2015

Copy link
Copy Markdown
Collaborator

📌 Commit 12dc01d has been approved by huonw

@bors

bors commented Jun 17, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 12dc01d with merge a528699...

bors added a commit that referenced this pull request Jun 17, 2015
This addresses an item in #22709. SizeHint in libcore/iter.rs also implements Iterator, but it's implementation is not accessible and is only used to send size hints to extend (it appears to be a performance improvement to avoid unnecessary memory reallocations). The is the only implementation of Iterator within libcore/iter.rs that is not/cannot be tested in this PR.
@bors

bors commented Jun 17, 2015

Copy link
Copy Markdown
Collaborator

💔 Test failed - auto-linux-64-opt

@alexcrichton

Copy link
Copy Markdown
Member

@bors: retry

On Tue, Jun 16, 2015 at 10:13 PM, bors notifications@github.com wrote:

[image: 💔] Test failed - auto-linux-64-opt
http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/5376


Reply to this email directly or view it on GitHub
#26126 (comment).

@bors

bors commented Jun 17, 2015

Copy link
Copy Markdown
Collaborator

@bors

bors commented Jun 17, 2015

Copy link
Copy Markdown
Collaborator

💔 Test failed - auto-linux-32-nopt-t

@alexcrichton

Copy link
Copy Markdown
Member

@bors: retry

On Tue, Jun 16, 2015 at 11:56 PM, bors notifications@github.com wrote:

[image: 💔] Test failed - auto-linux-32-nopt-t
http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/5389


Reply to this email directly or view it on GitHub
#26126 (comment).

@bors

bors commented Jun 17, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 12dc01d with merge d2c223a...

bors added a commit that referenced this pull request Jun 17, 2015
This addresses an item in #22709. SizeHint in libcore/iter.rs also implements Iterator, but it's implementation is not accessible and is only used to send size hints to extend (it appears to be a performance improvement to avoid unnecessary memory reallocations). The is the only implementation of Iterator within libcore/iter.rs that is not/cannot be tested in this PR.
@bors

bors commented Jun 17, 2015

Copy link
Copy Markdown
Collaborator

@bors
bors merged commit 12dc01d into rust-lang:master Jun 17, 2015
@Nashenas88

Copy link
Copy Markdown
Contributor Author

@bluss, in regards to the unnecessary tests, check out this question I asked here on #22709.

@Nashenas88
Nashenas88 deleted the sync-send-libcore-iter branch June 17, 2015 14:11
@bluss

bluss commented Jun 17, 2015

Copy link
Copy Markdown
Contributor

@Nashenas88 thanks for the pointer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants