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
b3827e4f3728b77bd3e60587487ebfc3cc8d901b
rust/tests/rustdoc-js/reexport-dedup-macro.js

12 lines
259 B
JavaScript
Raw 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': 'vec',
'others': [
{ 'path': 'foo', 'name': 'vec', 'exactPath': 'macro_in_module' },
{ 'path': 'foo', 'name': 'myspecialvec', 'exactPath': 'foo' },
],
},
];
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 209ms 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