Closed
Description
Verification
- I searched for recent similar issues at https://github.com/rust-lang/rustup/issues?q=is%3Aissue+is%3Aopen%2Cclosed and found no duplicates.
- I am on the latest version of Rustup according to https://github.com/rust-lang/rustup/tags and am still able to reproduce my issue.
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
- Make sure the
rust-docs
component is installed for the active toolchain. - Run
rustup doc std::mem::MaybeUninit
orrustup 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