std doc displays one
std::arch. The definition is actually reexported from
core::arch, which is exported from
stdsimd::arch. There's a
#[doc(no_inline)] attribute on this re-export because there were problems if such an attribute not added.
I'm a little curious whether this small issue is easy to solve...
What were the problems?
Seems related to compiled crate not containing other arch information, but i'm not very sure...
@Charles Lew if by "solve" you mean "generate docs for each platform and combine them separately", then no, this is not easy: https://github.com/rust-lang/rust/issues/1998
More info about this in https://github.com/rust-lang/rust/pull/43348 and https://github.com/rust-lang/rust/pull/73566
(I'm not happy the standard library does this either)
Thanks, but if the goal is find a workaround to display module docs for
std::arch at the crate root page, is there an easier solution?
I don't know, you'd have to talk to @gnzlbg
FWIW I think a short-term fix might be to redirect
but the larger issue is much harder to fix
Does rustdoc have a special attribute supporting such a redirection? (I suppose no.)
Will it accept such a nightly attribute to only be used on
honestly if you're going to special-case bootstrap I would prefer to just write the HTML file yourself in bootstrap
rustdoc has very predictable patterns for the file layout
Last updated: Oct 11 2021 at 22:34 UTC