Skip to content

rustdoc should be able to reference libstd in intra-doc links in libcore #121436

Closed as not planned
@clarfonthey

Description

@clarfonthey

This is something that came up in #112136.

Essentially, because we want to #[doc(inline)] the CString type in its parent module, we actually can't use hard-coded relative links and must use intra-doc links. However, we also can't do intra-doc links in libcore that reference libstd.

I think that especially since doc tests can reference libstd in libcore, we should also be able to intra-doc link libstd in libcore.

This also will probably enable us to get rid of the remaining hard-coded, non-intra-doc-links in libcore.

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