Skip to content

Conversation

@bluurryy
Copy link
Contributor

@bluurryy bluurryy commented Sep 21, 2025

This is a breaking change to the unstable allocator_api feature. Tracking issue #32838.
It implements the accepted api change proposal from rust-lang/libs-team#508.

The code for the blanket implementation is the same as the one for &A, just with the mut added.

@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 Sep 21, 2025
@rustbot
Copy link
Collaborator

rustbot commented Sep 21, 2025

r? @scottmcm

rustbot has assigned @scottmcm.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@scottmcm
Copy link
Member

scottmcm commented Dec 6, 2025

Sorry for being so slow here, looks good!
@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Dec 6, 2025

📌 Commit 2b228ce has been approved by scottmcm

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 Dec 6, 2025
jhpratt added a commit to jhpratt/rust that referenced this pull request Dec 6, 2025
… r=scottmcm

Implement `Allocator` for `&mut A` where `A: Allocator + ?Sized`

This is a breaking change to the unstable `allocator_api` feature. Tracking issue rust-lang#32838.
It implements the accepted api change proposal from rust-lang/libs-team#508.

The code for the blanket implementation is the same as the one for `&A`, just with the `mut` added.
bors added a commit that referenced this pull request Dec 6, 2025
Rollup of 5 pull requests

Successful merges:

 - #146826 (Implement `Allocator` for `&mut A` where `A: Allocator + ?Sized`)
 - #148487 (add Option::into_flat_iter)
 - #148814 (stabilize `array_windows`)
 - #149401 (Fix `name()` functions for local defs in rustc_public)
 - #149683 (Fix armv8r-none-eabihf tier)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 865650a into rust-lang:main Dec 6, 2025
10 checks passed
@rustbot rustbot added this to the 1.94.0 milestone Dec 6, 2025
rust-timer added a commit that referenced this pull request Dec 6, 2025
Rollup merge of #146826 - bluurryy:impl-allocator-for-mut-a, r=scottmcm

Implement `Allocator` for `&mut A` where `A: Allocator + ?Sized`

This is a breaking change to the unstable `allocator_api` feature. Tracking issue #32838.
It implements the accepted api change proposal from rust-lang/libs-team#508.

The code for the blanket implementation is the same as the one for `&A`, just with the `mut` added.
@bluurryy bluurryy deleted the impl-allocator-for-mut-a branch December 6, 2025 15:57
github-actions bot pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request Dec 13, 2025
Rollup of 5 pull requests

Successful merges:

 - rust-lang/rust#146826 (Implement `Allocator` for `&mut A` where `A: Allocator + ?Sized`)
 - rust-lang/rust#148487 (add Option::into_flat_iter)
 - rust-lang/rust#148814 (stabilize `array_windows`)
 - rust-lang/rust#149401 (Fix `name()` functions for local defs in rustc_public)
 - rust-lang/rust#149683 (Fix armv8r-none-eabihf tier)

r? `@ghost`
`@rustbot` modify labels: rollup
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