Skip to content

rustdoc JSON: struct fn missing if re-exported from private mod #102583

Closed
@Enselic

Description

@Enselic

Step-by-step

  1. Put this in repro.rs:
mod private_mod {
    pub struct S;

    impl S {
        pub fn missing_from_rustdoc_json() {}
    }
}

pub use private_mod::*;
  1. Run rustdoc +nightly-2022-10-02 repro.rs -Zunstable-options -wjson

  2. Check if missing_from_rustdoc_json is in the generated JSON: grep missing_from_rustdoc_json doc/repro.json

Actual result

Item is missing.

Expected result

Item is present.

Remarks

The item is present in the HTML version of the docs (rustdoc +nightly-2022-10-02 repro.rs && open doc/repro/index.html), or in the JSON if private_mod is made pub.

@rustbot labels +A-rustdoc-json +T-rustdoc +C-bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-jsonArea: Rustdoc JSON backendC-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