Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
master
rust/tests/rustdoc-js/reexport-dedup-method.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
333 B
JavaScript
Raw Permalink Normal View History

rustdoc-search: single result for items with multiple paths 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.
2024-01-12 15:32:08 -07:00
// exact-check
const EXPECTED = [
{
'query': 'Subscriber dostuff',
'others': [
{ 'path': 'foo::fmt::Subscriber', 'name': 'dostuff' },
],
},
{
'query': 'AnotherOne dostuff',
'others': [
{ 'path': 'foo::AnotherOne', 'name': 'dostuff' },
],
},
];
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 273ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API