You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to find 3 different ways to handle re-exports of items with #[doc(hidden)]:
mod private_module {#[doc(hidden)]pubstructPublic;#[doc(hidden)]pubtypeBar = u32;}#[doc(hidden)]pubtypeBar = u32;#[doc(hidden)]pubfnfoo(){}#[doc(hidden)]mod module {pubstructPublic;pubtypeBar = u32;}pubuseself::private_module::PublicasFoo;// doesn't appearpubuseself::private_module::BarasFoo2;// doesn't appearpubusecrate::BarasYo;// re-export is displayed, but no link to `Yo`pubusecrate::foo as yo;// re-export is displayed, but no link to `foo`pubuseself::module::PublicasFoo3;// inlinedpubuseself::module::BarasFoo4;// inlined
I think that for module items to be inlined, it's ok since the module and not the items are hidden.
However, the question becomes interesting for the two other cases where doc(hidden) is directly on the item: should we display the re-export in any case or not?
The text was updated successfully, but these errors were encountered:
I was able to find 3 different ways to handle re-exports of items with
#[doc(hidden)]
:I think that for
module
items to be inlined, it's ok since the module and not the items are hidden.However, the question becomes interesting for the two other cases where
doc(hidden)
is directly on the item: should we display the re-export in any case or not?The text was updated successfully, but these errors were encountered: