Building the documentation of this code using cargo doc generates a link to the wrong page:
pub mod some {
pub mod path {
pub struct Foo;
}
#[doc(inline)]
pub use path::Foo as Bar;
}
/// Link to [`Foo`](crate::some::path::Foo).
pub struct Test;
I expected a link to the some/path/struct.Foo.html page, but got a link to the some/struct.Bar.html page.
Meta
The error happens in the stable 1.51.0 and nightly 2021-04-07 versions.
Building the documentation of this code using
cargo docgenerates a link to the wrong page:I expected a link to the
some/path/struct.Foo.htmlpage, but got a link to thesome/struct.Bar.htmlpage.Meta
The error happens in the stable
1.51.0and nightly2021-04-07versions.