Open fmease opened 1 week ago
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]):
--document-hidden-items -Zunstable-options
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.
visibility_print_with_space
[^1]: Hence the https://github.com/rust-lang/rust/labels/requires-nightly label
Screenshot is broken :(
Oops, fixed. The link pointed into my private issue tracker. Reuploaded. Thanks for the notice :)
One reproducer where it's quite pronounced:
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.[^1]: Hence the https://github.com/rust-lang/rust/labels/requires-nightly label