Skip to content

pointer::wrapping_offset should mention provenance #139008

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

Closed
lolbinarycat opened this issue Mar 27, 2025 · 0 comments · Fixed by #139192
Closed

pointer::wrapping_offset should mention provenance #139008

lolbinarycat opened this issue Mar 27, 2025 · 0 comments · Fixed by #139192
Assignees
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools

Comments

@lolbinarycat
Copy link
Contributor

Location

https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset

Summary

The resulting pointer “remembers” the allocated object that self points to; it must not be used to read or write other allocated objects.

This is describing provenance, but it seems to have been written before rust's provenance rules started getting written down, as it does not use the word, nor does it link to the section.

@lolbinarycat lolbinarycat added the A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools label Mar 27, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Mar 27, 2025
@lolbinarycat lolbinarycat self-assigned this Mar 31, 2025
@lolbinarycat lolbinarycat changed the title pointer::wrapping_offset should mention provenence pointer::wrapping_offset should mention provenance Mar 31, 2025
lolbinarycat added a commit to lolbinarycat/rust that referenced this issue Mar 31, 2025
ChrisDenton added a commit to ChrisDenton/rust that referenced this issue Apr 30, 2025
…provenance-139008, r=RalfJung

mention provenance in the pointer::wrapping_offset docs

fixes rust-lang#139008
Zalathar added a commit to Zalathar/rust that referenced this issue Apr 30, 2025
…provenance-139008, r=RalfJung

mention provenance in the pointer::wrapping_offset docs

fixes rust-lang#139008
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Apr 30, 2025
…provenance-139008, r=RalfJung

mention provenance in the pointer::wrapping_offset docs

fixes rust-lang#139008
@bors bors closed this as completed in 851decd Apr 30, 2025
rust-timer added a commit to rust-lang-ci/rust that referenced this issue Apr 30, 2025
Rollup merge of rust-lang#139192 - lolbinarycat:docs-wrapping_offset-provenance-139008, r=RalfJung

mention provenance in the pointer::wrapping_offset docs

fixes rust-lang#139008
@saethlin saethlin removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Apr 30, 2025
github-actions bot pushed a commit to rust-lang/rustc-dev-guide that referenced this issue May 1, 2025
…e-139008, r=RalfJung

mention provenance in the pointer::wrapping_offset docs

fixes rust-lang/rust#139008
github-actions bot pushed a commit to rust-lang/miri that referenced this issue May 1, 2025
…e-139008, r=RalfJung

mention provenance in the pointer::wrapping_offset docs

fixes rust-lang/rust#139008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants