Skip to content

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

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

Merged
merged 1 commit into from
Jun 17, 2015

Conversation

Nashenas88
Copy link
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
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
Contributor Author

r? @huonw @edwardw

@Nashenas88
Copy link
Contributor Author

bump

@bluss
Copy link
Member

bluss commented Jun 13, 2015

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
Copy link
Member

huonw commented Jun 16, 2015

@bors r+

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

@bors
Copy link
Collaborator

bors commented Jun 16, 2015

📌 Commit 12dc01d has been approved by huonw

@bors
Copy link
Collaborator

bors commented Jun 17, 2015

⌛ 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
Copy link
Collaborator

bors commented Jun 17, 2015

💔 Test failed - auto-linux-64-opt

@alexcrichton
Copy link
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
Copy link
Collaborator

bors commented Jun 17, 2015

@bors
Copy link
Collaborator

bors commented Jun 17, 2015

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

@alexcrichton
Copy link
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
Copy link
Collaborator

bors commented Jun 17, 2015

⌛ 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 merged commit 12dc01d into rust-lang:master Jun 17, 2015
@Nashenas88
Copy link
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
Copy link
Member

bluss commented Jun 17, 2015

@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