Skip to content

Src link for re-exported macros are missing. #38951

Closed
@cbreeden

Description

@cbreeden
Contributor

Consider https://doc.rust-lang.org/core/macro.write.html which has a [Src] link, but https://doc.rust-lang.org/std/macro.write.html does not. The Std docs typically have higher visibility as it's what's linked from the docs.rust-lang.org homepage.

Activity

cbreeden

cbreeden commented on Jan 10, 2017

@cbreeden
ContributorAuthor

One thought I had was to create a exported_macros.html file in the src/ directory of the docs to link to; a place to put the src of the macros and format them.

mbrubeck suggested having rustdoc specifically look at #[macro_reexport(...)] attributes like found here https://doc.rust-lang.org/src/std/up/src/libstd/lib.rs.html#314-318. Perhaps it's possible to then obtain the proper path from the macro for creating a [src] link.

added
T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
on Jun 23, 2017
added
C-bugCategory: This is a bug.
T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.
on Jul 26, 2017
added 2 commits that reference this issue on Jun 6, 2018

Rollup merge of rust-lang#51389 - ollie27:rustdoc_cross_macro_src_sta…

1ad4b32

Rollup merge of rust-lang#51389 - ollie27:rustdoc_cross_macro_src_sta…

b4c2ad8

1 remaining item

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.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

      Participants

      @Mark-Simulacrum@cbreeden

      Issue actions

        Src link for re-exported macros are missing. · Issue #38951 · rust-lang/rust