Closed
Description
I tried this code:
/// I want to show [with_code]
pub use std::string::String;
pub fn with_code() {}
I expected to see this happen: Rustdoc links all the original documentation relative to std::string
, and all the new documentation relative to the current crate, so with_code
resolves properly.
Instead, this happened: Rustdoc links all the original documentation relative to std::string
:
Sep 26 22:41:10.388 INFO rustdoc::passes::collect_intra_doc_links: ignoring warning from parent crate: unresolved link to `with_code`
This hits proc-macros especially hard because they're forced to be in a separate crate and can't link to anything in the main crate.
Meta
rustdoc --version
: rustdoc 1.48.0-nightly (f68e089 2020-09-19), but also present on master (1ec980d)