Closed
Description
I tried this code:
/// See also [`g()`][crate::g]
pub fn f() {}
fn g() {}
I expected to see this happen:
warning: `[crate::g]` cannot be resolved, ignoring it.
or preferably
warning: `[crate::g]` is private and therefore cannot be linked, ignoring it.
Instead, this happened: The crate documents without warnings, but does not generate links: See also [g()][crate::g]
Meta
$ rustdoc +nightly --version
rustdoc 1.45.0-nightly (4bd32c980 2020-05-29)
@rustbot modify labels: T-rustdoc A-intra-doc-links