rust-lang / rust-lang/rust

Search across re-exports doesn't appear to be supported

Open
#151,205 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

For example:

https://docs.rs/xilem/0.4.0/xilem/?search=memoize
https://docs.rs/xilem/0.4.0/xilem/?search=vello

These queries return no resuts. But memoize is a part of xilem_core which is re-exported as core. And vello is a re-export under the re-export masonry.

I didn't know whether to report this here, or as a rustdoc issue. But this is a case that kind of sets between rustdoc invoked with and without --no-deps, which may only be relevant to docs.rs.

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.

Research direction

Reproduce the two docs.rs search URLs from the issue and compare how rustdoc search handles re-exports with and without --no-deps. Determine whether the missing results belong in rustdoc or docs.rs, then verify that searches for memoize and vello find the re-exported items.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.