Skip to content

rustdoc: Inlining a foreign public struct with private fields shows the fields as private in the current crate #91440

Open
@jyn514

Description

@jyn514
// inner crate
pub struct S {
  pub x: i32,
  y: i32,
}

// outer crate
pub use inner::S;

image

Originally posted by @jyn514 in #91408 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateA-visibilityArea: Visibility / privacyC-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions