Skip to content

rustup doc cannot open docs for std::mem::MaybeUninit #4002

Closed
@taylordotfish

Description

@taylordotfish

Verification

Problem

I tried to open the documentation for std::mem::MaybeUninit with the following command:

rustup doc std::mem::MaybeUninit

but got the following error:

error: No document for 'std::mem::MaybeUninit'

Steps

  1. Make sure the rust-docs component is installed for the active toolchain.
  2. Run rustup doc std::mem::MaybeUninit or rustup doc core::mem::MaybeUninit.

Possible Solution(s)

I believe the issue occurs because "union" is missing from keywords_mod in cli::topical_doc::local_path.

I expect that adding it to that array would fix the issue, although some discussion may be warranted concerning where in the array it should be inserted.

Notes

No response

Rustup version

rustup 1.27.1 (54dd3d00f 2024-04-24)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.82.0-nightly (5aea14073 2024-08-20)`

Installed toolchains

Default host: powerpc64le-unknown-linux-gnu
rustup home:  /home/tmp/.rustup

installed toolchains
--------------------

stable-powerpc64le-unknown-linux-gnu
nightly-powerpc64le-unknown-linux-gnu (default)

installed targets for active toolchain
--------------------------------------

powerpc64le-unknown-linux-gnu
wasm32-unknown-unknown

active toolchain
----------------

nightly-powerpc64le-unknown-linux-gnu (default)
rustc 1.82.0-nightly (5aea14073 2024-08-20)

OS version

Debian GNU/Linux ppc64el trixie

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions