Rustdoc does not warn when linking to a private associated item #81981
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-intra-doc-links
Area: Intra-doc links, the ability to link to items in docs by name
A-visibility
Area: Visibility / privacy
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: Rustdoc warns that
S::f
is private, the same way it would warn ifS
were private.Instead, this happened: Rustdoc gives no warning and generates no link.
Meta
rustdoc --version
: rustdoc 1.52.0-nightly (9778068 2021-02-07)The text was updated successfully, but these errors were encountered: