Local `rustc-docs` could make use of local pages for `std` types
@arferreira is already working on this.
Since Feb 6, 2026.
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Posting this for @blyxyas and big thanks for having spotted this issue real quick :)
Location (URL)
The same problem persists in many different pages, just to pick an example on my machine:
$RUSTUP_HOME/toolchains/nightly-aarch64-apple-darwin/share/doc/rust/html/rustc-docs/rustc_trait_selection/errors/struct.AmbiguousImpl.html
Summary
The external link for Option<> is https://doc.rust-lang.org/nightly/core/option/enum.Option.html, which is probably desirable for online usage, but considering the fact that this download is intended for offline usage, it'd be better if it can point to the std docs just next to it, i.e. $RUSTUP_HOME/toolchains/nightly-aarch64-apple-darwin/share/doc/rust/html/std/option/enum.Option.html?
A few things to be noted for this issue:
-
This issue should be resolved in a way that it doesn't break the online docs.
-
This does imply an implicit dependency between
rustc-docsandrust-docswhichrustupis not quite ready to handle, but sincerustc-docsis mostly for in-house usage, I believe we can focus on redirecting the links for the time being.
cc @GuillaumeGomez @jieyouxu
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.