Skip to content

Commit

Permalink
Auto merge of #119912 - notriddle:notriddle/reexport-dedup, r=Guillau…
Browse files Browse the repository at this point in the history
…meGomez

rustdoc-search: single result for items with multiple paths

Part of #15723

Preview: https://notriddle.com/rustdoc-html-demo-9/reexport-dup/std/index.html?search=hashmap

This change uses the same "exact" paths as trait implementors and type alias inlining to track items with multiple reachable paths. This way, if you search for `vec`, you get only the `std` exports of it, and not the one from `alloc`.

It still includes all the items in the search index so that you can search for them by all available paths. For example, try `core::option` and `std::option`, and notice that the results page doesn't show duplicates, but still shows all the items in their respective crates.
  • Loading branch information
bors committed Apr 18, 2024
2 parents 084a337 + ff8cd3d commit b35797a
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit b35797a

Please sign in to comment.