Skip to content

Stabilize Box::pin_in - #166218

Open
maxdexh wants to merge 1 commit into
rust-lang:mainfrom
maxdexh:who-you-callin-pinhead
Open

maxdexh wants to merge 1 commit into
rust-lang:mainfrom
maxdexh:who-you-callin-pinhead

Conversation

@maxdexh

@maxdexh maxdexh commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Tracking issue: #163177

Splits out Box::pin_in from allocator_ext and stabilizes it.

Public API

impl<T, A: StaticAllocator> Box<T, A> {
    pub fn pin_in(x: T, alloc: A) -> Pin<Self> { ... }
}

This function is the custom allocator equivalent of Box::pin.
It is literally the composition of two safe stable functions, Box::new_in and Box::into_pin.

@maxdexh maxdexh added the needs-fcp This change is insta-stable, or significant enough to need a team FCP to proceed. label Nov 19, 2026
@rustbot rustbot added A-box Area: Our favorite opsem complication 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 19, 2026
@rustbot

rustbot commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

r? @JohnTitor

rustbot has assigned @JohnTitor.
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

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: libs
  • libs expanded to 38 candidates
  • Random selection from JohnTitor, Mark-Simulacrum, clarfonthey

@rust-log-analyzer

This comment has been minimized.

@maxdexh
maxdexh force-pushed the who-you-callin-pinhead branch from e03b32a to cf25c9a Compare November 19, 2026 19:13
@JohnTitor

Copy link
Copy Markdown
Member

cc @rust-lang/libs-ping for FCP kick-off

@JohnTitor JohnTitor 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.

r=me once FCP passes!

View changes since this review

@jhpratt

jhpratt commented Nov 23, 2026

Copy link
Copy Markdown
Member

You should be able to start FCP yourself :)

@rfcbot merge libs

@rust-rfcbot

rust-rfcbot commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

@jhpratt has proposed to merge this. The next step is review by the rest of the tagged team members:

No concerns currently listed.

Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!

cc @rust-lang/libs-ping: FCP proposed for libs, please feel free to register concerns.
See this document for info about what commands tagged team members can give me.

@rust-rfcbot rust-rfcbot added proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. and removed needs-fcp This change is insta-stable, or significant enough to need a team FCP to proceed. labels Nov 23, 2026
@JohnTitor

Copy link
Copy Markdown
Member

You should be able to start FCP yourself :)

I'm not on the FCP team, can I still trigger it?

@jhpratt

jhpratt commented Nov 23, 2026

Copy link
Copy Markdown
Member

Yup! Since the reorganization, any team member can.

@clarfonthey

Copy link
Copy Markdown
Contributor

Note: that wasn't strictly part of the reorg, but it was implemented around the same time. Now anyone in T-all can start any FCP but you need to be on a specific FCP list to cancel it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-box Area: Our favorite opsem complication disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants