Skip to content

Allow manual Unpin impls for local extern types#155069

Closed
officialasishkumar wants to merge 1 commit intorust-lang:mainfrom
officialasishkumar:unpin-extern-type
Closed

Allow manual Unpin impls for local extern types#155069
officialasishkumar wants to merge 1 commit intorust-lang:mainfrom
officialasishkumar:unpin-extern-type

Conversation

@officialasishkumar
Copy link
Copy Markdown

@officialasishkumar officialasishkumar commented Apr 9, 2026

This allows explicit Unpin impls for local extern types under pin_ergonomics.

#[pin_v2] only applies to ADTs with Rust-visible fields, so local foreign types do not need the structurally pinned rejection path. Before this change, that path hit a delayed bug and ICEd on code like impl Unpin for ExternType {}.

Fixes #155053.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 9, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 9, 2026

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: compiler
  • compiler expanded to 69 candidates
  • Random selection from 12 candidates

@oli-obk
Copy link
Copy Markdown
Contributor

oli-obk commented Apr 11, 2026

Closing as the user has been banned

@oli-obk oli-obk closed this Apr 11, 2026
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ICE]: impl of Unpin for a non-adt type

4 participants