Skip to content

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

Closed
@crumblingstatue

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

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