Skip to content

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

Description

@cbreeden

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

  1. cbreeden commented on Jan 10, 2017

    @cbreeden
    Author

    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.

  2. added
    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
    on Jun 23, 2017
  3. 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
  4. added 2 commits that reference this issue on Jun 6, 2018
    1ad4b32
    b4c2ad8
  5. added a commit that references this issue on Jun 7, 2018
    d5759da
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

      No branches or pull requests

      Issue actions