Skip to content

Remove unused SelectionCandidate::PointerLikeCandidate#153798

Open
zachs18 wants to merge 1 commit intorust-lang:mainfrom
zachs18:remove-pointerlikecandidate
Open

Remove unused SelectionCandidate::PointerLikeCandidate#153798
zachs18 wants to merge 1 commit intorust-lang:mainfrom
zachs18:remove-pointerlikecandidate

Conversation

@zachs18
Copy link
Contributor

@zachs18 zachs18 commented Mar 13, 2026

The PointerLike trait was removed in #143308, as part of dyn* being removed.

!null pattern types were added in #142339 , which added SelectionCandidate::PointerLikeCandidate, IIUC to allow pattern types to implement PointerLike, but PointerLike was removed after that PR was first written, so (I assume) that functionality was mostly removed on a rebase, but this part didn't get removed. (see an earlier version of that PR that mentioned LangItem::PointerLike: 50cab82 before it got rebased over the rollup containing 143308: #142339 (comment) )

cc @oli-obk

@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 Mar 13, 2026
@rustbot
Copy link
Collaborator

rustbot commented Mar 13, 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, types
  • compiler, types expanded to 69 candidates
  • Random selection from 15 candidates

Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

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

Thanks! I'm pretty sure it got left behind.
@bors r+ rollup

View changes since this review

@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 13, 2026

📌 Commit 814c750 has been approved by JohnTitor

It is now in the queue for this repository.

@rust-bors rust-bors bot 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 Mar 13, 2026
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Mar 13, 2026
…e, r=JohnTitor

Remove unused `SelectionCandidate::PointerLikeCandidate`

The `PointerLike` trait was removed in rust-lang#143308, as part of `dyn*` being removed.

`!null` pattern types were added in rust-lang#142339 , which added `SelectionCandidate::PointerLikeCandidate`, IIUC to allow pattern types to implement `PointerLike`, but `PointerLike` was removed after that PR was first written, so (I assume) that functionality was mostly removed on a rebase, but this part didn't get removed. (see an earlier version of that PR that mentioned `LangItem::PointerLike`: rust-lang@50cab82 before it got rebased over the rollup containing 143308: rust-lang#142339 (comment) )

cc @oli-obk
rust-bors bot pushed a commit that referenced this pull request Mar 13, 2026
Rollup of 3 pull requests

Successful merges:

 - #153418 (core: remove FIXME comment in option.rs FromIterator)
 - #153569 (Fix grammar in Pin documentation)
 - #153798 (Remove unused `SelectionCandidate::PointerLikeCandidate`)
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-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.

3 participants