Skip to content

Url pointing to invalid methods in documentation of pointer type #50746

Closed
@pravic

Description

@pravic

https://doc.rust-lang.org/std/primitive.pointer.html
https://doc.rust-lang.org/nightly/std/primitive.pointer.html

It turns out that the pointer type is implemented twice: for impl<T> *const T and impl<T> *mut T. However, the index section contains links to the first implementation only, whereas methods from the second implementation have different href anchors:

For example, links from the index:
https://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.is_null
https://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.is_null

And actual anchors:
https://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.is_null
https://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.is_null-1

The same in stable version.

cc @steveklabnik (I don't know the name of the docs team, unfortunately)
cc @GuillaumeGomez probably

Possibly related to #24558.

Metadata

Metadata

Labels

C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions