Repository navigation
Rustdoc doesn't show repr for a struct re-exported from another package #110698
Copy link
Copy link
Closed
Closed
Copy link
Labels
A-ABIArea: Concerning the application binary interface (ABI)Area: Concerning the application binary interface (ABI)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
Activity
I suspect that this kind of metadata isn't saved to disk and therefore
rustdochas no idea about the existence of the attribute on foreign types.- addedT-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.A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateArea: Documentation that has been re-exported from a different crateA-ABIArea: Concerning the application binary interface (ABI)Area: Concerning the application binary interface (ABI)
on Apr 27, 2023 That's a regression actually since it was there before #98450. Fixing it.
- added a commit that references this issue
on Apr 27, 2023 Great, thanks for the quick fix!
- added a commit that references this issue
on Apr 29, 2023 - added a commit that references this issue
on Apr 30, 2023 - added a commit that references this issue
on Apr 20, 2024 - added a commit that references this issue
on Apr 27, 2024
Metadata
Metadata
Assignees
Labels
A-ABIArea: Concerning the application binary interface (ABI)Area: Concerning the application binary interface (ABI)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.
If you define a struct with an explicit
repr(...)in one package, thenpub useit in another package, rustdoc doesn't show therepron the re-exported one.Minimal repo showing this problem: https://github.com/nicholasbishop/pub-use-repr-doc-bug
In

pkg1you get:But in

pkg2you get:Meta
rustc --version --verbose:Also tested on nightly, same result: