Description
Reproduction steps
I tried to document autocxx::subclass::is_subclass()
from the autocxx crate (docs.rs page), which has the following doc comment:
/// Deprecated - use [`subclass`] instead.
#[deprecated]
pub use autocxx_macro::subclass as is_subclass;
I expected to see this happen: the subclass
link points to the documentation for the subclass
item defined in the same file. This is indeed what happens on stable, rustdoc 1.84.1 (e71f9a9a9 2025-01-27)
.
Instead, this happened: the subclass
link points to the documentation for the is_subclass
item—the same page I'm already on! This happens on rustdoc 1.86.0-nightly (ad211ced8 2025-01-07)
, currently in use by docs.rs, as well as today's beta (rustdoc 1.85.0-beta.8 (38213856a 2025-02-06)
) and today's nightly (rustdoc 1.86.0-nightly (942db6782 2025-02-06)
).
Sorry this example is using a real crate rather than a minimized test case. I haven't taken the time to dig any deeper than what I've written here, but I can if it'd be helpful.
Version it worked on
It most recently worked on: rustdoc 1.84.1
Version with regression
rustdoc --version --verbose
:
rustdoc 1.85.0-beta.8 (38213856a 2025-02-06)
binary: rustdoc
commit-hash: 38213856a8a3a6d49a234e0d95a722a4f28a2b18
commit-date: 2025-02-06
host: x86_64-unknown-linux-gnu
release: 1.85.0-beta.8
LLVM version: 19.1.7
@rustbot modify labels: +regression-from-stable-to-beta -regression-untriaged