Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document PointerLike implementation restrictions. #134602

Merged
merged 1 commit into from
Dec 22, 2024

Conversation

kpreid
Copy link
Contributor

@kpreid kpreid commented Dec 21, 2024

Since #133226, it is no longer automatically implemented, but must be manually implemented, with special restrictions. The documentation now (roughly) explains those special restrictions.

cc @compiler-errors (author of the previous PR)

@rustbot
Copy link
Collaborator

rustbot commented Dec 21, 2024

r? @tgross35

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

@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 Dec 21, 2024
@kpreid
Copy link
Contributor Author

kpreid commented Dec 21, 2024

Whoops, looks like someone got to this already today, in 159dba8.
I still have something to add, though. Resolved the conflict.

@kpreid kpreid changed the title Correct documentation for PointerLike about automatic implementation. Document PointerLike implementation restrictions. Dec 21, 2024
@tgross35
Copy link
Contributor

This seems consistent with current use and with intent.

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Dec 22, 2024

📌 Commit da6616c has been approved by tgross35

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 22, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 22, 2024
…iaskrgr

Rollup of 4 pull requests

Successful merges:

 - rust-lang#134599 (Detect invalid exprs in parser used by pretty-printer tests)
 - rust-lang#134602 (Document `PointerLike` implementation restrictions.)
 - rust-lang#134635 (Don't ICE on illegal `dyn*` casts)
 - rust-lang#134639 (Make sure we note ambiguity causes on positive/negative impl conflicts)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 7f36ae4 into rust-lang:master Dec 22, 2024
6 checks passed
@rustbot rustbot added this to the 1.85.0 milestone Dec 22, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Dec 22, 2024
Rollup merge of rust-lang#134602 - kpreid:pointerlike-doc, r=tgross35

Document `PointerLike` implementation restrictions.

Since <rust-lang#133226>, it is no longer automatically implemented, but must be manually implemented, with special restrictions. The documentation now (roughly) explains those special restrictions.

cc `@compiler-errors` (author of the previous PR)
@kpreid kpreid deleted the pointerlike-doc branch December 22, 2024 16:07
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