Skip to content

Add retain_mut crate#4

Merged
Turbo87 merged 1 commit into
rust-lang:mainfrom
paolobarbolini:feat/retain-mut
Jun 16, 2026
Merged

Add retain_mut crate#4
Turbo87 merged 1 commit into
rust-lang:mainfrom
paolobarbolini:feat/retain-mut

Conversation

@paolobarbolini

Copy link
Copy Markdown
Contributor

This adds the retain_mut crate, which at the time it originally came out provided Vec::retain_mut and VecDeque::retain_mut APIs. As the description of the latest version says, these APIs have since been merged into the standard library, replacing the need for this crate.

Cc @upsuper for approval.
For context, if this gets merged, then users will see a banner similar to this one when lookin at retain_mut on crates.io:

image

Std 1.61 stabilized Vec::retain_mut and VecDeque::retain_mut,
replacing the retain_mut crate.
@Turbo87 Turbo87 changed the title feat: add retain_mut crate Add retain_mut crate Jun 16, 2026

@Turbo87 Turbo87 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you! :)

@Turbo87
Turbo87 merged commit 2781c8c into rust-lang:main Jun 16, 2026
2 checks passed
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.

3 participants