Skip to content
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

Support std::iter::extend<T> for VecLike<T> #27

Merged
merged 1 commit into from Aug 22, 2016
Merged

Conversation

@nipunn1313
Copy link
Contributor

nipunn1313 commented Aug 19, 2016

VecLike naturally supports push, so it also makes sense to support extend. Both implementors SmallVec and Vec already have tested implementations, so this extension feels natural.


This change is Reviewable

@nox
Copy link
Member

nox commented Aug 19, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Aug 19, 2016

📌 Commit 215d763 has been approved by nox

@bors-servo
Copy link
Contributor

bors-servo commented Aug 19, 2016

The latest upstream changes (presumably #26) made this pull request unmergeable. Please resolve the merge conflicts.

@nox
Copy link
Member

nox commented Aug 19, 2016

Superseded by #26.

@nox nox closed this Aug 19, 2016
@rphmeier
Copy link
Contributor

rphmeier commented Aug 19, 2016

(not fully -- this PR also adds an Extend<T> bound on VecLike)

@nox nox reopened this Aug 19, 2016
@bors-servo
Copy link
Contributor

bors-servo commented Aug 19, 2016

🔒 Merge conflict

@nox
Copy link
Member

nox commented Aug 19, 2016

Oh right. Could you rebase it?

@SimonSapin
Copy link
Member

SimonSapin commented Aug 19, 2016

Adding a bound is a breaking change for implementors. Please change the version number accordingly.

@nipunn1313 nipunn1313 force-pushed the nipunn1313:extend branch from 215d763 to e7e970a Aug 19, 2016
@nipunn1313
Copy link
Contributor Author

nipunn1313 commented Aug 19, 2016

Rebased! I'll leave it to you to update the version number.

@Ms2ger
Copy link
Contributor

Ms2ger commented Aug 22, 2016

@bors-servo r=nox

@bors-servo
Copy link
Contributor

bors-servo commented Aug 22, 2016

📌 Commit e7e970a has been approved by nox

@bors-servo
Copy link
Contributor

bors-servo commented Aug 22, 2016

Test exempted - status

@bors-servo bors-servo merged commit e7e970a into servo:master Aug 22, 2016
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
bors-servo added a commit that referenced this pull request Aug 22, 2016
Support std::iter::extend<T> for VecLike<T>

VecLike naturally supports push, so it also makes sense to support extend. Both implementors SmallVec and Vec already have tested implementations, so this extension feels natural.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-smallvec/27)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.