Skip to content

rustdoc: Appearance of #[doc(hidden)] differs from all the other attributes #132304

Open
@fmease

Description

One reproducer where it's quite pronounced:

#[doc(hidden)]
#[non_exhaustive]
#[repr(C)]
pub struct S(u8);

Output (with --document-hidden-items -Zunstable-options1):

Image

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

  1. Hence the requires-nightly This issue requires a nightly compiler in some way. label

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

A-attributesArea: Attributes (`#[…]`, `#![…]`)A-rustdoc-uiArea: Rustdoc UI (generated HTML)C-bugCategory: This is a bug.P-lowLow priorityT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions