rust/tests/rustdoc-js
Michael Howell 0b3c617ec0 rustdoc-search: add support for type parameters
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-09-03 13:06:06 -07:00
..
basic.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
basic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
doc-alias-filter-out.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
doc-alias-filter-out.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
doc-alias-filter.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
doc-alias-filter.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
doc-alias-whitespace.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
doc-alias-whitespace.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
doc-alias.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
doc-alias.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
exact-match.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
exact-match.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
foreign-type-path.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
foreign-type-path.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
full-path-function.js Correctly handle paths from foreign items 2023-09-02 23:04:37 +02:00
full-path-function.rs Correctly handle paths from foreign items 2023-09-02 23:04:37 +02:00
generics-impl.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
generics-impl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
generics-match-ambiguity.js rustdoc-search: fix order-independence bug 2023-06-11 18:57:33 -07:00
generics-match-ambiguity.rs rustdoc-search: fix order-independence bug 2023-06-11 18:57:33 -07:00
generics-multi-trait.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
generics-multi-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
generics-nested.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
generics-nested.rs rustdoc-search: add support for nested generics 2023-04-14 14:55:45 -07:00
generics-trait.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
generics-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
generics.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
generics.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl-trait.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
impl-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macro-search.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
macro-search.rs rustdoc: search by macro when query ends with ! 2023-02-16 18:16:09 -07:00
module-substring.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
module-substring.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nested-unboxed.js rustdoc-search: build args, return, and generics on one unifier 2023-06-11 18:19:37 -07:00
nested-unboxed.rs rustdoc-search: build args, return, and generics on one unifier 2023-06-11 18:19:37 -07:00
never-search.js rustdoc-search: search never type with ! 2023-06-12 17:30:23 -07:00
never-search.rs rustdoc-search: search never type with ! 2023-06-12 17:30:23 -07:00
path-ordering.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
path-ordering.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
primitive.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
primitive.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
prototype.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
prototype.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
raw-pointer.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
raw-pointer.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
reexport.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
reexport.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
search-bag-semantics.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
search-bag-semantics.rs rustdoc: implement bag semantics for function parameter search 2023-03-19 18:19:24 -07:00
search-short-types.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
search-short-types.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice-array.js rustdoc: add note about slice/array searches to help popup 2023-06-10 14:08:26 -07:00
slice-array.rs rustdoc: search for slices and arrays by type with [] 2023-06-10 13:52:54 -07:00
struct-like-variant.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
struct-like-variant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
substring.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
substring.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
summaries.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
summaries.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
type-parameters.js rustdoc-search: add support for type parameters 2023-09-03 13:06:06 -07:00
type-parameters.rs rustdoc-search: add support for type parameters 2023-09-03 13:06:06 -07:00
where-clause.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
where-clause.rs rustdoc: fix type search when more than one where clause applies 2023-03-07 11:37:04 -07:00