Skip to content

[breaking change] Update retain to use &mut instead of & #61

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
Nov 15, 2017
Merged

[breaking change] Update retain to use &mut instead of & #61

merged 1 commit into from
Nov 15, 2017

Conversation

Xaeroxe
Copy link
Contributor

@Xaeroxe Xaeroxe commented Aug 22, 2017

This change is Reviewable

@Xaeroxe
Copy link
Contributor Author

Xaeroxe commented Aug 22, 2017

cc @mbrubeck

@mbrubeck mbrubeck changed the title Update retain to use &mut instead of & [breaking change] Update retain to use &mut instead of & Aug 23, 2017
@mbrubeck
Copy link
Collaborator

Since this is a breaking change, we might want to consider if there are any other breaking changes we'd like to make, so that we can release them all together as smallvec 1.0.0.

@Xaeroxe
Copy link
Contributor Author

Xaeroxe commented Nov 15, 2017

@mbrubeck well it's been almost 3 months and we haven't gotten any response on that. Do we just want to go ahead and merge it?

@mbrubeck
Copy link
Collaborator

@bors-servo r+

Yeah, sorry. I should have included this in the recent 0.5.0 release, but I forgot. It can go in the next version.

@bors-servo
Copy link
Contributor

📌 Commit 505833c has been approved by mbrubeck

@bors-servo
Copy link
Contributor

⌛ Testing commit 505833c with merge eee285e...

bors-servo pushed a commit that referenced this pull request Nov 15, 2017
[breaking change] Update retain to use &mut instead of &

<!-- 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/61)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-travis
Approved by: mbrubeck
Pushing eee285e to master...

@bors-servo bors-servo merged commit 505833c into servo:master Nov 15, 2017
@Xaeroxe Xaeroxe deleted the patch-1 branch November 15, 2017 23:07
@mbrubeck mbrubeck mentioned this pull request Nov 30, 2017
bors-servo pushed a commit that referenced this pull request Dec 1, 2017
Version 0.6.0

Includes these changes since the last release:

* Breaking change: Remove deprecated `SmallVecN` type aliases and `push_all_move` method (#77)
* Breaking change: Make `retain` pass `&mut T` to its predicate (#61)
* Add new methods `dedup`, `dedup_by`, and `dedup_by_key` (#72)
* Deprecate the `VecLike` trait in favor of standard library traits (#74)
* Optimize the `Clone` and `Deserialize` implementations to avoid unnecessary reallocation (#71)
* Optimize `extend_from_slice` and `insert_from_slice` to use `copy_nonoverlapping` (#76)
* Include the text of the Mozilla Public License in the source repo (#69)
* Improved documentation (#75)

<!-- 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/78)
<!-- Reviewable:end -->
@RagnarGrootKoerkamp
Copy link

RagnarGrootKoerkamp commented Feb 10, 2022

retain_mut is now experimental for Vec.

Once that's stable, it would be nice to revert this, for drop-in compatibility with Vec.

Also see the discussion in #59

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.

4 participants