diff options
| author | Michael Howell <michael@notriddle.com> | 2023-02-28 18:17:59 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-03-20 22:41:57 -0700 |
| commit | e600c0ba0e0b8153e68c4cead3d92b2c52ca8914 (patch) | |
| tree | 2edcba6db60fd0dd0580249843ae57fc37c67de9 /tests/rustdoc-js-std/parser-generics.js | |
| parent | 3ff4d56650bf5f7a57d11f3666fb429f0b00b18f (diff) | |
| download | rust-e600c0ba0e0b8153e68c4cead3d92b2c52ca8914.tar.gz rust-e600c0ba0e0b8153e68c4cead3d92b2c52ca8914.zip | |
rustdoc: add support for type filters in arguments and generics
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).
Diffstat (limited to 'tests/rustdoc-js-std/parser-generics.js')
| -rw-r--r-- | tests/rustdoc-js-std/parser-generics.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rustdoc-js-std/parser-generics.js b/tests/rustdoc-js-std/parser-generics.js index 0cf7f5019aa..c448d845acb 100644 --- a/tests/rustdoc-js-std/parser-generics.js +++ b/tests/rustdoc-js-std/parser-generics.js @@ -6,7 +6,6 @@ const PARSED = [ foundElems: 0, original: 'A<B<C<D>, E>', returned: [], - typeFilter: -1, userQuery: 'a<b<c<d>, e>', error: 'Unexpected `<` after `<`', }, @@ -18,6 +17,7 @@ const PARSED = [ pathWithoutLast: [], pathLast: "p", generics: [], + typeFilter: -1, }, { name: "u8", @@ -25,12 +25,12 @@ const PARSED = [ pathWithoutLast: [], pathLast: "u8", generics: [], + typeFilter: -1, }, ], foundElems: 2, original: "p<> u8", returned: [], - typeFilter: -1, userQuery: "p<> u8", error: null, }, @@ -50,12 +50,12 @@ const PARSED = [ generics: [], }, ], + typeFilter: -1, }, ], foundElems: 1, original: '"p"<a>', returned: [], - typeFilter: -1, userQuery: '"p"<a>', error: null, }, |
