about summary refs log tree commit diff
path: root/tests/rustdoc-gui/search-corrections.goml
AgeCommit message (Collapse)AuthorLines
2025-08-15rustdoc-search: search backend with partitioned suffix treeMichael Howell-58/+17
2024-10-30rustdoc-search: pass original names through ASTMichael Howell-6/+6
2024-04-01Update to new browser-ui-test versionGuillaume Gomez-5/+5
2023-09-03rustdoc: update tests for generic parsing and correctionMichael Howell-1/+9
2023-09-03rustdoc-search: add support for type parametersMichael Howell-0/+42
When writing a type-driven search query in rustdoc, specifically one with more than one query element, non-existent types become generic parameters instead of auto-correcting (which is currently only done for single-element queries) or giving no result. You can also force a generic type parameter by writing `generic:T` (and can force it to not use a generic type parameter with something like `struct:T` or whatever, though if this happens it means the thing you're looking for doesn't exist and will give you no results). There is no syntax provided for specifying type constraints for generic type parameters. When you have a generic type parameter in a search query, it will only match up with generic type parameters in the actual function, not concrete types that match, not concrete types that implement a trait. It also strictly matches based on when they're the same or different, so `option<T>, option<U> -> option<U>` matches `Option::and`, but not `Option::or`. Similarly, `option<T>, option<T> -> option<T>`` matches `Option::or`, but not `Option::and`.
2023-04-20rustdoc-search: use more descriptive "x not found; y instead" messageMichael Howell-3/+5
2023-04-19rustdoc-search: give longer notification for type correctionsMichael Howell-3/+3
2023-04-17rustdoc: restructure type search engine to pick-and-use IDsMichael Howell-0/+54
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.