Skip to content

CI tests running rustdoc with --document-private-items --document-hidden-items on std? #87844

Closed
@steffahn

Description

@steffahn

I recently broke the command RUSTDOCFLAGS='--document-private-items --document-hidden-items' x doc library/std, see #87842, which demonstrates that CI doesn’t test rustdoc on the standard library with these flags. In effect, code with broken intra doc links in or other issues with doc(hidden) items (and probably also for private items?) aren’t detected and can be merged into master. Maybe we want to add a test for it? Possibly it’s even true that normal x doc library/std will always succeed if the one with --document-private-items --document-hidden-items does so we wouldn’t even need to test both with and without those flags? (Correct me if I’m wrong on that last point.)

@rustbot label T-infra, A-docs, A-testsuite, C-enhancement

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-testsuiteArea: The testsuite used to check the correctness of rustcC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions