Skip to content

intra-doc: [type@char] point to module page instead of primitive page #74063

Closed
@tesuji

Description

@tesuji

I tried to document this code:

pub use std::char;

/// Foooooooo
///
/// [`char`] [`type@char`] [`std::char`]
pub struct Foo;

I expected to see this happen:

  • [`char`] and [`std::char`] points to module page of char
  • [`type@char`] points to char primitive page

Instead, this happened:

  • [`type@char`] points to module page of char

Meta

rustc --version --verbose:

rustc 1.46.0-nightly (0cd7ff7dd 2020-07-04)
binary: rustc
commit-hash: 0cd7ff7ddfb75a38dca81ad3e76b1e984129e939
commit-date: 2020-07-04
host: x86_64-unknown-linux-gnu
release: 1.46.0-nightly
LLVM version: 10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameC-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