summaryrefslogtreecommitdiff
path: root/tests/rustdoc-js
Commit message (Collapse)AuthorAgeFilesLines
* Rollup merge of #110780 - notriddle:notriddle/slice-index, r=GuillaumeGomezYuki Okushi2023-05-062-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.
| * rustdoc-search: add slices and arrays to indexMichael Howell2023-04-242-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.
* | rustdoc: restructure type search engine to pick-and-use IDsMichael Howell2023-04-171-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.
* rustdoc-search: add support for nested genericsMichael Howell2023-04-142-0/+52
|
* rustdoc: add support for type filters in arguments and genericsMichael Howell2023-03-203-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).
* rustdoc: implement bag semantics for function parameter searchMichael Howell2023-03-192-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.
* rustdoc: fix type search when more than one `where` clause appliesMichael Howell2023-03-072-1/+15
|
* rustdoc: fix type search index for `fn<T>() -> &T where T: Trait`Michael Howell2023-03-072-1/+12
|
* rustdoc: function signature search with traits in `where` clauseMichael Howell2023-03-042-0/+35
|
* rustdoc: search by macro when query ends with `!`Michael Howell2023-02-162-0/+20
| | | | Related to #96399
* rustdoc: update test cases to match with stricter match criteriaMichael Howell2023-01-211-1/+0
|
* rustdoc: compute maximum Levenshtein distance based on the queryMichael Howell2023-01-211-2/+0
| | | | | | The heuristic is pretty close to the name resolver. Fixes #103357
* rustdoc: update search test casesMichael Howell2023-01-141-2/+1
|
* Move /src/test to /testsAlbert Larsan2023-01-1144-0/+1300