about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-paths.js
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-02-28 18:17:59 -0700
committerMichael Howell <michael@notriddle.com>2023-03-20 22:41:57 -0700
commite600c0ba0e0b8153e68c4cead3d92b2c52ca8914 (patch)
tree2edcba6db60fd0dd0580249843ae57fc37c67de9 /tests/rustdoc-js-std/parser-paths.js
parent3ff4d56650bf5f7a57d11f3666fb429f0b00b18f (diff)
downloadrust-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-paths.js')
-rw-r--r--tests/rustdoc-js-std/parser-paths.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/rustdoc-js-std/parser-paths.js b/tests/rustdoc-js-std/parser-paths.js
index 9f823f9336a..f3e421f5ffa 100644
--- a/tests/rustdoc-js-std/parser-paths.js
+++ b/tests/rustdoc-js-std/parser-paths.js
@@ -8,11 +8,11 @@ const PARSED = [
             pathWithoutLast: ["a"],
             pathLast: "b",
             generics: [],
+            typeFilter: -1,
         }],
         foundElems: 1,
         original: "A::B",
         returned: [],
-        typeFilter: -1,
         userQuery: "a::b",
         error: null,
     },
@@ -24,6 +24,7 @@ const PARSED = [
                 pathWithoutLast: ["a"],
                 pathLast: "b",
                 generics: [],
+                typeFilter: -1,
             },
             {
                 name: "c",
@@ -31,12 +32,12 @@ const PARSED = [
                 pathWithoutLast: [],
                 pathLast: "c",
                 generics: [],
+                typeFilter: -1,
             },
         ],
         foundElems: 2,
         original: 'A::B,C',
         returned: [],
-        typeFilter: -1,
         userQuery: 'a::b,c',
         error: null,
     },
@@ -56,6 +57,7 @@ const PARSED = [
                         generics: [],
                     },
                 ],
+                typeFilter: -1,
             },
             {
                 name: "c",
@@ -63,12 +65,12 @@ const PARSED = [
                 pathWithoutLast: [],
                 pathLast: "c",
                 generics: [],
+                typeFilter: -1,
             },
         ],
         foundElems: 2,
         original: 'A::B<f>,C',
         returned: [],
-        typeFilter: -1,
         userQuery: 'a::b<f>,c',
         error: null,
     },
@@ -79,11 +81,11 @@ const PARSED = [
             pathWithoutLast: ["mod"],
             pathLast: "a",
             generics: [],
+            typeFilter: -1,
         }],
         foundElems: 1,
         original: "mod::a",
         returned: [],
-        typeFilter: -1,
         userQuery: "mod::a",
         error: null,
     },