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

Add Vec::spare_capacity_mut #75015

Merged
merged 1 commit into from
Aug 2, 2020
Merged

Add Vec::spare_capacity_mut #75015

merged 1 commit into from
Aug 2, 2020

Conversation

Amanieu
Copy link
Member

@Amanieu Amanieu commented Aug 1, 2020

Returns the remaining spare capacity of the vector as a slice of MaybeUninit<T>.

As suggested by @sfackler in #70967 (comment).

r? @sfackler

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 1, 2020
@sfackler
Copy link
Member

sfackler commented Aug 1, 2020

Nice! r=me with a tracking issue.

library/alloc/src/vec.rs Outdated Show resolved Hide resolved
@Amanieu
Copy link
Member Author

Amanieu commented Aug 1, 2020

@bors r=sfackler

@bors
Copy link
Contributor

bors commented Aug 1, 2020

📌 Commit df3a30a has been approved by sfackler

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 1, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 2, 2020
…arth

Rollup of 5 pull requests

Successful merges:

 - rust-lang#74602 (Clarify the doc for MaybeUninit::zeroed on incorrect use)
 - rust-lang#74720 (Clean up E0728 explanation)
 - rust-lang#74992 (fix rustdoc generic param order)
 - rust-lang#75015 (Add Vec::spare_capacity_mut)
 - rust-lang#75022 (Use a slice pattern instead of rchunks_exact(_).next())

Failed merges:

r? @ghost
@bors bors merged commit d544e21 into rust-lang:master Aug 2, 2020
@cuviper cuviper added this to the 1.47.0 milestone May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants