summary refs log tree commit diff
path: root/tests/rustdoc-js
AgeCommit message (Collapse)AuthorLines
2023-05-06Rollup merge of #110780 - notriddle:notriddle/slice-index, r=GuillaumeGomezYuki Okushi-0/+81
rustdoc-search: add slices and arrays to index This indexes them as primitives with generics, so `slice<u32>` is how you search for `[u32]`, and `array<u32>` for `[u32; 1]`. A future commit will desugar the square bracket syntax to search both arrays and slices at once.
2023-04-24rustdoc-search: add slices and arrays to indexMichael Howell-0/+81
This indexes them as primitives with generics, so `slice<u32>` is how you search for `[u32]`, and `array<u32>` for `[u32; 1]`. A future commit will desugar the square bracket syntax to search both arrays and slices at once.
2023-04-17rustdoc: restructure type search engine to pick-and-use IDsMichael Howell-0/+27
This change makes it so, instead of mixing string distance with type unification, function signature search works by mapping names to IDs at the start, reporting to the user any cases where it had to make corrections, and then matches with IDs when going through the items. This only changes function searches. Name searches are left alone, and corrections are only done when there's a single item in the search query.
2023-04-14rustdoc-search: add support for nested genericsMichael Howell-0/+52
2023-03-20rustdoc: add support for type filters in arguments and genericsMichael Howell-0/+39
This makes sense, since the search index has the information in it, and it's more useful for function signature searches since a function signature search's item type is, by definition, some type of function (there's more than one, but not very many).
2023-03-19rustdoc: implement bag semantics for function parameter searchMichael Howell-0/+24
This tweak to the function signature search engine makes things so that, if a type is repeated in the search query, it'll only match if the function actually includes it that many times.
2023-03-07rustdoc: fix type search when more than one `where` clause appliesMichael Howell-1/+15
2023-03-07rustdoc: fix type search index for `fn<T>() -> &T where T: Trait`Michael Howell-1/+12
2023-03-04rustdoc: function signature search with traits in `where` clauseMichael Howell-0/+35
2023-02-16rustdoc: search by macro when query ends with `!`Michael Howell-0/+20
Related to #96399
2023-01-21rustdoc: update test cases to match with stricter match criteriaMichael Howell-1/+0
2023-01-21rustdoc: compute maximum Levenshtein distance based on the queryMichael Howell-2/+0
The heuristic is pretty close to the name resolver. Fixes #103357
2023-01-14rustdoc: update search test casesMichael Howell-2/+1
2023-01-11Move /src/test to /testsAlbert Larsan-0/+1300