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

clarify pointer offset function safety concerns #52668

Merged
merged 1 commit into from
Jul 25, 2018

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Jul 24, 2018

Fixes #45719

@rust-highfive
Copy link
Collaborator

r? @cramertj

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 24, 2018
@cramertj
Copy link
Member

cramertj commented Jul 24, 2018

I vaguely recall there being a PR for this previously, or at least an issue, but I can't find it. Maybe @rkruppe remembers?

@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 Jul 24, 2018
@cramertj
Copy link
Member

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Jul 24, 2018

📌 Commit fb08915 has been approved by cramertj

@rust-lang rust-lang deleted a comment from bors Jul 24, 2018
@rust-lang rust-lang deleted a comment from bors Jul 24, 2018
@hanna-kruppe
Copy link
Contributor

This discrepancy with ptrtoint+arithmetic+inttoptr has been brought up multiple times in the past (often by @RalfJung IIRC 😄) but I don't recall a docs PR off-hand.

@RalfJung
Copy link
Member Author

I vaguely recall there being a PR for this previously, or at least an issue, but I can't find it.

Same here. But I looked through the PRs I authored and could not find any.

@RalfJung
Copy link
Member Author

Ah, found something: #45719

Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Jul 24, 2018
clarify pointer offset function safety concerns
bors added a commit that referenced this pull request Jul 25, 2018
Rollup of 7 pull requests

Successful merges:

 - #52391 (Add unaligned volatile intrinsics)
 - #52402 (impl PartialEq+Eq for BuildHasherDefault)
 - #52645 (Allow declaring existential types inside blocks)
 - #52656 (Stablize Redox Unix Sockets)
 - #52658 (Prefer `Option::map`/etc over `match` wherever it improves clarity)
 - #52668 (clarify pointer offset function safety concerns)
 - #52677 (Release notes: add some missing 1.28 libs stabilization)

Failed merges:

r? @ghost
@bors bors merged commit fb08915 into rust-lang:master Jul 25, 2018
@RalfJung RalfJung deleted the ptr-doc branch August 16, 2018 10:54
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants