Skip to content

pointer::wrapping_offset should mention provenance #139008

@lolbinarycat

Description

@lolbinarycat

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.

Metadata

Metadata

Assignees

Labels

A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsneeds-triageThis issue may need triage. Remove it if it has been sufficiently triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions