Skip to content

Rustdoc-Json: Reexported items don't appear in paths #110007

Description

@aDotInTheVoid
#![feature(no_core)]
#![no_core]

mod bytes {
    pub struct Bytes;
}

pub use bytes::Bytes;
{
  "crate_version": null,
  "external_crates": {},
  "format_version": 24,
  "includes_private": false,
  "index": {
    "0:0:1024": {
      "crate_id": 0,
      "docs": null,
      "id": "0:0:1024",
      "inner": {"is_crate": true, "is_stripped": false, "items": ["0:4-0:2:1596"]},
      "kind": "module",
      "name": "path"
    },
    "0:2:1596": {
      "crate_id": 0,
      "docs": null,
      "id": "0:2:1596",
      "inner": {"generics": {"params": [], "where_predicates": []}, "impls": [], "kind": "unit"},
      "kind": "struct",
      "name": "Bytes"
    },
    "0:4-0:2:1596": {
      "crate_id": 0,
      "docs": null,
      "id": "0:4-0:2:1596",
      "inner": {"glob": false, "id": "0:2:1596", "name": "Bytes", "source": "bytes::Bytes"},
      "kind": "import",
      "name": null
    }
  },
  "paths": {"0:0:1024": {"crate_id": 0, "kind": "module", "path": ["path"]}},
  "root": "0:0:1024"
}

0:2:1596 should appear in paths

Activity

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 backendS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueT-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