Allow Unpin impls for local extern type - #161692
Conversation
|
r? @chenyukang rustbot has assigned @chenyukang. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
@bors r+ rollup |
Allow Unpin impls for local extern type Fixes rust-lang#155053 `visit_implementation_of_unpin` helper only handles `ty::Adt` and does delay the bug for everything else. The orphan check is what allows a local foreign type i.e. `ty::Foreign` and that's why we can each that arm and ICE. Discloure: Only the test comments were genarated using an LLM.
Allow Unpin impls for local extern type Fixes rust-lang#155053 `visit_implementation_of_unpin` helper only handles `ty::Adt` and does delay the bug for everything else. The orphan check is what allows a local foreign type i.e. `ty::Foreign` and that's why we can each that arm and ICE. Discloure: Only the test comments were genarated using an LLM.
|
💔 I suspect this PR failed tests as part of a rollup After fixing the problem, consider running a try job for the failed job before re-approving. Link to failure: #161875 (comment) |
|
This pull request was unapproved. This PR was contained in a rollup (#161875), which was unapproved. |
430719a to
b5e7cbf
Compare
|
This PR changes a file inside |
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@rustbot review |
|
@bors r+ rollup |
Rollup merge of #161692 - mehdiakiki:issue-155053, r=chenyukang Allow Unpin impls for local extern type Fixes #155053 `visit_implementation_of_unpin` helper only handles `ty::Adt` and does delay the bug for everything else. The orphan check is what allows a local foreign type i.e. `ty::Foreign` and that's why we can each that arm and ICE.
Fixes #155053
visit_implementation_of_unpinhelper only handlesty::Adtand does delay the bug for everything else. The orphan check is what allows a local foreign type i.e.ty::Foreignand that's why we can each that arm and ICE.