Skip to content

[Rustdoc JSON] Primitive types in core are missing from the index #104064

Closed
@LukeMathWalker

Description

@LukeMathWalker

The issue

The id for i32 in the JSON documentation generated for core is 0:79316:78663.
It appears in the path:

"0:79316:78663": {
  "crate_id":0,
  "path":["core","i32"],
  "kind":"primitive"
}

but it is not present in the index, although it's referenced in the links section for many other items.
The same happens to the other primitives I checked - e.g. i64 (0:79317:78665) or char (0:79294:78252).

How to reproduce

Add the rust-docs-json component to your nightly toolchain, using

rustup component add rust-docs-json --toolchain nightly

You can then inspect core.json in .rustup/toolchains/nightly-<platform-triplet>/share/doc/rust/json/core.json

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