rust-lang / rust-lang/rust

doc aliases only apply to the final element of the searched path

Open
#141,475 1 comment 0 reactions 1 assignee View on GitHub

@lolbinarycat is already working on this.

Since Nov 6, 2025.

A-doc-alias A-rustdoc-search T-rustdoc T-rustdoc-frontend
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

this can cause issues if you are looking for an associated item by the alias

repro

search ptr::wrapping_add

expected result

pointer::wrapping_add is in the results

acrual result

alias is ignored, search results only contain types with the literal string "ptr" in their name.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.