rustdoc: lint if a private item has doctests #55333
Labels
A-doctests
Area: Documentation tests, run by rustdoc
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
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
The text was updated successfully, but these errors were encountered: