Skip to content

dangling pointers: turn some consequences of the definition into notes - #2336

Merged
traviscross merged 2 commits into
rust-lang:masterfrom
RalfJung:dangling
Sep 1, 2026
Merged

dangling pointers: turn some consequences of the definition into notes#2336
traviscross merged 2 commits into
rust-lang:masterfrom
RalfJung:dangling

Conversation

@RalfJung

Copy link
Copy Markdown
Member

It seems to me that we have unnecessarily many normative clauses here. Most of this follows from the definitions of "points to" and allocations. Allocations are currently not defined in the Reference so I added a link to the standard library where we have a definition.

@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Aug 23, 2026
@traviscross traviscross added the I-lang-docs-nominated Nominated for discussion during a lang-docs team meeting. label Aug 25, 2026
Our tooling supports link reference definitions of the form
`core::ptr#allocation`, so let's use that.
@traviscross

Copy link
Copy Markdown
Contributor

Thanks @RalfJung.

@traviscross traviscross removed S-waiting-on-review Status: The marked PR is awaiting review from a maintainer I-lang-docs-nominated Nominated for discussion during a lang-docs team meeting. labels Sep 1, 2026
@traviscross
traviscross added this pull request to the merge queue Sep 1, 2026
Merged via the queue into rust-lang:master with commit 7ae6109 Sep 1, 2026
7 checks passed
[`const`]: items/constant-items.md
[abi]: items/external-blocks.md#abi
[allocation]: ../std/ptr/index.html#allocation
[allocation]: core::ptr#allocation

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oh I had no idea these work here, nice :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants