Skip to content

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

Closed

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

Activity

  1. added
    C-bugCategory: This is a bug.
    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
    on Oct 2, 2022
  2. GuillaumeGomez commented on Oct 27, 2022

    @GuillaumeGomez
    Member

    I have a fix for this, I'll send it in the next hours.

  3. GuillaumeGomez commented on Oct 27, 2022

    @GuillaumeGomez
    Member

    Opened #103653.

  4. added a commit that references this issue on Oct 29, 2022
    05ab16b
  5. added a commit that references this issue on Jan 6, 2023
    ba35803
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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