Skip to content

Self does not work in intra-doc links for primitives #75809

Description

@jyn514

I tried this code in #75807:

#![feature(lang_items)]
#![feature(no_core)]
#![no_core]

#[lang = "usize"]
/// [Self::f]
/// [usize::f]
impl usize {
    /// Some docs
    pub fn f() {}
}

I expected to see this happen: Self::f and usize::f resolve to the same thing.

Instead, this happened: Self::f gives a warning that it can't be resolved.

Meta

rustdoc --version:

rustdoc 1.47.0-nightly (de521cbb3 2020-08-21)

(but the problem is also present on master at time of writing)

Activity

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

Metadata

Metadata

Assignees

Labels

A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameC-bugCategory: This is a bug.P-lowLow priorityT-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