about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-quote.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-quote.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-quote.js')
-rw-r--r--tests/rustdoc-js-std/parser-quote.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/rustdoc-js-std/parser-quote.js b/tests/rustdoc-js-std/parser-quote.js
index 1e16c90de5e..d5d67cac892 100644
--- a/tests/rustdoc-js-std/parser-quote.js
+++ b/tests/rustdoc-js-std/parser-quote.js
@@ -19,8 +19,8 @@ const PARSED = [
             pathWithoutLast: [],
             pathLast: "p",
             generics: [],
+            typeFilter: -1,
         }],
-        typeFilter: -1,
         userQuery: '-> "p"',
         error: null,
     },
@@ -31,11 +31,11 @@ const PARSED = [
             pathWithoutLast: [],
             pathLast: "p",
             generics: [],
+            typeFilter: -1,
         }],
         foundElems: 1,
         original: '"p",',
         returned: [],
-        typeFilter: -1,
         userQuery: '"p",',
         error: null,
     },
@@ -44,7 +44,6 @@ const PARSED = [
         foundElems: 0,
         original: '"p" -> a',
         returned: [],
-        typeFilter: -1,
         userQuery: '"p" -> a',
         error: "You cannot have more than one element if you use quotes",
     },
@@ -53,7 +52,6 @@ const PARSED = [
         foundElems: 0,
         original: '"a" -> "p"',
         returned: [],
-        typeFilter: -1,
         userQuery: '"a" -> "p"',
         error: "Cannot have more than one literal search element",
     },
@@ -62,7 +60,6 @@ const PARSED = [
         foundElems: 0,
         original: '->"-"',
         returned: [],
-        typeFilter: -1,
         userQuery: '->"-"',
         error: 'Unexpected `-` in a string element',
     },
@@ -71,7 +68,6 @@ const PARSED = [
         foundElems: 0,
         original: '"a',
         returned: [],
-        typeFilter: -1,
         userQuery: '"a',
         error: 'Unclosed `"`',
     },
@@ -80,7 +76,6 @@ const PARSED = [
         foundElems: 0,
         original: '""',
         returned: [],
-        typeFilter: -1,
         userQuery: '""',
         error: 'Cannot have empty string element',
     },