rust/tests/rustdoc-js-std
Michael Howell 12dc24f460 rustdoc-search: simplify rules for generics and type params
This commit is a response to feedback on the displayed type
signatures results, by making generics act stricter.

Generics are tightened by making order significant. This means
`Vec<Allocator>` now matches only with a true vector of allocators,
instead of matching the second type param. It also makes unboxing
within generics stricter, so `Result<A, B>` only matches if `B`
is in the error type and `A` is in the success type. The top level
of the function search is unaffected.

Find the discussion on:

* <https://rust-lang.zulipchat.com/#narrow/stream/393423-t-rustdoc.2Fmeetings/topic/meeting.202024-07-08/near/449965149>
* <https://github.com/rust-lang/rust/pull/124544#issuecomment-2204272265>
* <https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/deciding.20on.20semantics.20of.20generics.20in.20rustdoc.20search/near/476841363>
2024-10-30 12:27:48 -07:00
..
alias-1.js rustdoc-search: fix description on aliases in results 2024-04-18 22:21:29 -07:00
alias-2.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
alias-3.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
alias-4.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
alias.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
asrawfd.js rustdoc-search: count path edits with separate edit limit 2023-12-26 18:46:17 -07:00
basic.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
bufread-fill-buf.js rustdoc-search: simplify rules for generics and type params 2024-10-30 12:27:48 -07:00
deduplication.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
enum-option.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
exact-case.js rustdoc: show exact case-sensitive matches first 2024-08-23 13:05:24 -04:00
filter-crate.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
fn-forget.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
from_u.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
full-path-function.js Add tests for type-based search 2023-09-01 15:16:11 +02:00
iterator-type-signatures.js rustdoc-search: add support for associated types 2023-11-19 18:54:36 -07:00
keyword.js rustdoc-search: make primitives and keywords less special 2023-11-21 13:59:26 -07:00
macro-check.js rustdoc-search: make primitives and keywords less special 2023-11-21 13:59:26 -07:00
macro-print.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
never.js rustdoc-search: search never type with ! 2023-06-12 17:30:23 -07:00
option-type-signatures.js rustdoc-search: simplify rules for generics and type params 2024-10-30 12:27:48 -07:00
osstring-to-string.js Add display method to OsStr 2024-01-18 20:38:31 +00:00
parser-bindings.js rustdoc-search: pass original names through AST 2024-10-30 10:35:38 -07:00
parser-errors.js rustdoc-search: pass original names through AST 2024-10-30 10:35:38 -07:00
parser-filter.js rustdoc-search: pass original names through AST 2024-10-30 10:35:38 -07:00
parser-generics.js rustdoc-search: pass original names through AST 2024-10-30 10:35:38 -07:00
parser-hof.js rustdoc-search: pass original names through AST 2024-10-30 10:35:38 -07:00
parser-ident.js rustdoc-search: pass original names through AST 2024-10-30 10:35:38 -07:00
parser-literal.js rustdoc-search: pass original names through AST 2024-10-30 10:35:38 -07:00
parser-paths.js rustdoc-search: pass original names through AST 2024-10-30 10:35:38 -07:00
parser-quote.js rustdoc-search: pass original names through AST 2024-10-30 10:35:38 -07:00
parser-reference.js rustdoc-search: pass original names through AST 2024-10-30 10:35:38 -07:00
parser-returned.js rustdoc-search: pass original names through AST 2024-10-30 10:35:38 -07:00
parser-separators.js rustdoc-search: pass original names through AST 2024-10-30 10:35:38 -07:00
parser-slice-array.js rustdoc-search: pass original names through AST 2024-10-30 10:35:38 -07:00
parser-tuple.js rustdoc-search: pass original names through AST 2024-10-30 10:35:38 -07:00
parser-weird-queries.js rustdoc-search: pass original names through AST 2024-10-30 10:35:38 -07:00
path-maxeditdistance.js Bless rustdoc-js-std test 2024-09-22 20:35:10 -04:00
path-ordering.js Fix rustdoc-js-std path-ordering test due to API removal 2024-10-02 11:15:48 +02:00
primitive.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
println-typo.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
quoted.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
reference-shrink.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
regex.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
return-specific-literal.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
return-specific.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
should-fail.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
simd-type-signatures.js Update std::simd usage and test outputs 2023-11-26 09:02:25 -05:00
string-from_ut.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
struct-vec.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
typed-query.js Update rustdoc-js* format 2023-06-09 17:00:47 +02:00
vec-new.js rustdoc-search: single result for items with multiple paths 2024-04-08 17:07:14 -07:00
vec-type-signatures.js rustdoc-search: simplify rules for generics and type params 2024-10-30 12:27:48 -07:00