Open
Description
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.