-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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.
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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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: