Skip to content

Intra rustdoc links don't work with associated consts #49323

Description

@crumblingstatue
//! We have here [`foo::MYCONST`] and [`Bar::MYCONST`].

pub mod foo {
	pub const MYCONST: u32 = 42;
}

pub struct Bar;

impl Bar {
	pub const MYCONST: u32 = 42;
}

// Test with non-doc usage

pub const C1: u32 = foo::MYCONST;
pub const C2: u32 = Bar::MYCONST;

Renders as:

rustdoc 1.26.0-nightly (c08480fce 2018-03-23)

Ref #43466

Activity

  1. added a commit that references this issue on Mar 27, 2018
    68a2e73
  2. added
    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
    T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.
    C-enhancementCategory: An issue proposing an enhancement or a PR with one.
    on Mar 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.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