about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-weird-queries.js
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2024-01-06 16:01:10 -0700
committerMichael Howell <michael@notriddle.com>2024-03-11 22:27:22 -0700
commit7b926555b71032889ea5079aa642885e63fe51c2 (patch)
treefdc3dcb889c3631cc80f18a85577653be1b08567 /tests/rustdoc-js-std/parser-weird-queries.js
parent23e931fd076cc1d02a34b3f9bd9a64f92c8f4289 (diff)
downloadrust-7b926555b71032889ea5079aa642885e63fe51c2.tar.gz
rust-7b926555b71032889ea5079aa642885e63fe51c2.zip
rustdoc-search: add search query syntax `Fn(T) -> U`
This is implemented, in addition to the ML-style one,
because Rust does it. If we don't, we'll never hear the end of it.

This commit also refactors some duplicate parts of the parser
into a dedicated function.
Diffstat (limited to 'tests/rustdoc-js-std/parser-weird-queries.js')
-rw-r--r--tests/rustdoc-js-std/parser-weird-queries.js9
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/rustdoc-js-std/parser-weird-queries.js b/tests/rustdoc-js-std/parser-weird-queries.js
index 26b8c32d680..499b82a3469 100644
--- a/tests/rustdoc-js-std/parser-weird-queries.js
+++ b/tests/rustdoc-js-std/parser-weird-queries.js
@@ -38,15 +38,6 @@ const PARSED = [
         error: null,
     },
     {
-        query: 'a,b(c)',
-        elems: [],
-        foundElems: 0,
-        original: "a,b(c)",
-        returned: [],
-        userQuery: "a,b(c)",
-        error: "Expected `,`, `:` or `->`, found `(`",
-    },
-    {
         query: 'aaa,a',
         elems: [
             {