Skip to content

Conversation

@nipunn1313
Copy link
Contributor

@nipunn1313 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
Contributor

nox commented Aug 19, 2016

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 215d763 has been approved by nox

@bors-servo
Copy link
Contributor

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

@nox
Copy link
Contributor

nox commented Aug 19, 2016

Superseded by #26.

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

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

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

🔒 Merge conflict

@nox
Copy link
Contributor

nox commented Aug 19, 2016

Oh right. Could you rebase it?

@SimonSapin
Copy link
Member

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

@nipunn1313
Copy link
Contributor Author

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

📌 Commit e7e970a has been approved by nox

@bors-servo
Copy link
Contributor

⚡ Test exempted - status

@bors-servo bors-servo merged commit e7e970a into servo:master Aug 22, 2016
bors-servo pushed 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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants