Closed
Description
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 commentedon Jan 10, 2017
One thought I had was to create a
exported_macros.html
file in thesrc/
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.macro_reexport
#49982Rollup merge of rust-lang#51389 - ollie27:rustdoc_cross_macro_src_sta…
Rollup merge of rust-lang#51389 - ollie27:rustdoc_cross_macro_src_sta…
1 remaining item