rustdoc: Appearance of #[doc(hidden)]
differs from all the other attributes #132304
Open
Description
opened on Oct 29, 2024
One reproducer where it's quite pronounced:
#[doc(hidden)]
#[non_exhaustive]
#[repr(C)]
pub struct S(u8);
Output (with --document-hidden-items -Zunstable-options
1):
That's because it gets rendered separately in visibility_print_with_space
. I would rather we didn't do that. It should be printed together with all the other attributes and have the same visual appearance.
Footnotes
-
Hence the requires-nightly
This issue requires a nightly compiler in some way. label ↩
Activity