Skip to content

rustdoc: lint if a private item has doctests #55333

Closed
@QuietMisdreavus

Description

@QuietMisdreavus

Based on the reaction to #54438 it looks like we shouldn't stop running these tests, but i still feel like they're not useful to have, because you can't use private items in doctests anyway. Could we make a lint to check for these, even if it's allow-by-default?

cc @rust-lang/rustdoc

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-doctestsArea: Documentation tests, run by rustdocA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-rustdocRelevant to the rustdoc 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