-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Open
Labels
A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateArea: Documentation that has been re-exported from a different crateC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
Let's say you have crates A, B, and C, where:
- Crate A has a struct named
AType. - Crate B depends on crate A, and has a struct named
BTypethat has docs that link to typeATypein crate A. - Crate C depends on crate B, and has a struct named
CTypethat re-exportsB::BTypewith#[doc(inline)].
In the docs for crate C, the link to AType in the inlined documentation for BType is broken.
For a more concrete example, the crate aws-sdk-s3 re-exports aws_smithy_http::byte_stream::Bytestream, which has a link to futures_core::Stream in its docs. This results in the inlined docs for Bytestream having a broken link to Stream, which can be observed in these docs (where it says "Via impl Stream").
Meta
Observed this with stable rustdoc 1.56.1 and rustdoc 1.61.0-nightly (4b043fa 2022-02-24).
Metadata
Metadata
Assignees
Labels
A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateArea: Documentation that has been re-exported from a different crateC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.