Skip to content

Conversation

@WaffleLapkin
Copy link
Member

Implements rust-lang/libs-team#689.

cc #135974, #100486

r? libs-api

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Nov 5, 2025
@Amanieu
Copy link
Member

Amanieu commented Nov 5, 2025

@bors +

@WaffleLapkin
Copy link
Member Author

@bors ping

@bors
Copy link
Collaborator

bors commented Nov 5, 2025

😪 I'm awake I'm awake

@WaffleLapkin
Copy link
Member Author

Ah, it was bors + with no r ^^'

@bors r=Amanieu

@bors
Copy link
Collaborator

bors commented Nov 5, 2025

📌 Commit 32c93cc has been approved by Amanieu

It is now in the queue for this repository.

@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 Nov 5, 2025
Comment on lines 2602 to +2605
#[inline]
#[unstable(feature = "vec_push_within_capacity", issue = "100486")]
pub fn push_within_capacity(&mut self, value: T) -> Result<(), T> {
self.push_mut_within_capacity(value).map(|_| ())
// #[unstable(feature = "push_mut", issue = "135974")]
pub fn push_within_capacity(&mut self, value: T) -> Result<&mut T, T> {
Copy link
Member Author

Choose a reason for hiding this comment

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

N.B.: no must_use

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Nov 5, 2025
…now_with_50_percent_more_mut, r=Amanieu

Merge `Vec::push{,_mut}_within_capacity`

Implements rust-lang/libs-team#689.

cc rust-lang#135974, rust-lang#100486

r? libs-api
bors added a commit that referenced this pull request Nov 5, 2025
Rollup of 8 pull requests

Successful merges:

 - #147994 (Deduplicate deprecation warning when using unit or tuple structs)
 - #148440 ([rustdoc search] Simplify itemTypes and filter "dependencies")
 - #148501 (triagebot: Create Zulip topics for libs backports)
 - #148517 (Remove no longer necessary lint allow)
 - #148518 (Unify the configuration of the compiler docs)
 - #148523 (miri subtree update)
 - #148525 (Fix ICE from lit_to_mir_constant caused by type error)
 - #148534 (Merge `Vec::push{,_mut}_within_capacity`)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 05f3a3d into rust-lang:master Nov 6, 2025
11 checks passed
rust-timer added a commit that referenced this pull request Nov 6, 2025
Rollup merge of #148534 - WaffleLapkin:push_within_capacity_now_with_50_percent_more_mut, r=Amanieu

Merge `Vec::push{,_mut}_within_capacity`

Implements rust-lang/libs-team#689.

cc #135974, #100486

r? libs-api
@rustbot rustbot added this to the 1.93.0 milestone Nov 6, 2025
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Nov 6, 2025
Rollup of 8 pull requests

Successful merges:

 - rust-lang/rust#147994 (Deduplicate deprecation warning when using unit or tuple structs)
 - rust-lang/rust#148440 ([rustdoc search] Simplify itemTypes and filter "dependencies")
 - rust-lang/rust#148501 (triagebot: Create Zulip topics for libs backports)
 - rust-lang/rust#148517 (Remove no longer necessary lint allow)
 - rust-lang/rust#148518 (Unify the configuration of the compiler docs)
 - rust-lang/rust#148523 (miri subtree update)
 - rust-lang/rust#148525 (Fix ICE from lit_to_mir_constant caused by type error)
 - rust-lang/rust#148534 (Merge `Vec::push{,_mut}_within_capacity`)

r? `@ghost`
`@rustbot` modify labels: rollup
@WaffleLapkin WaffleLapkin deleted the push_within_capacity_now_with_50_percent_more_mut branch November 6, 2025 08:29
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. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants