Skip to content

Intra-doc link in core for a pointer method couldn't find Self #91204

Open
@scottmcm

Description

@scottmcm

I had my PR fail (web) (plain) when I tried to use intra-doc links to link to a pointer method.

error: unresolved link to `Self::from_bits`
  --> library/core/src/ptr/const_ptr.rs:54:33
   |
54 |     /// The inverse method is [`Self::from_bits`].
   |                                 ^^^^^^^^^^^^^^^ no item named `Self` in scope

Opening a bug as requested in
https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/Intra-doc.20links.20for.20pointers.3F/near/262639859

I particularly wanted intra-doc links here because there's #method.from_bits and #method.from_bits-1 on the page because of *const and *mut versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameA-raw-pointersArea: raw pointers, MaybeUninit, NonNullC-bugCategory: This is a bug.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