Skip to content

Rustdoc-Json: Pub mod in private mod adds both to index #101105

@aDotInTheVoid

Description

@aDotInTheVoid
#![feature(no_core)] #![no_core] mod m1 { pub mod m2{} }

Produces

{ "crate_version": null, "external_crates": {}, "format_version": 18, "includes_private": false, "index": { "0:0:1567": { "crate_id": 0, "id": "0:0:1567", "inner": {"is_crate": true, "is_stripped": false, "items": []}, "kind": "module", "name": "bug" }, "0:1:1565": { "crate_id": 0, "id": "0:1:1565", "inner": {"is_crate": false, "is_stripped": true, "items": ["0:2:1566"]}, "kind": "module", "name": "m1" }, "0:2:1566": { "crate_id": 0, "id": "0:2:1566", "inner": {"is_crate": false, "is_stripped": false, "items": []}, "kind": "module", "name": "m2" } }, "root": "0:0:1567" }

@rustbot modify labels: +A-rustdoc-json +T-rustdoc

Metadata

Metadata

Assignees

No one assigned

    Labels

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