about summary refs log tree commit diff
path: root/src/test/rustdoc-js-std/parser-quote.js
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-01-03 23:51:20 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-04-18 20:59:08 +0200
commit51de26cfd977edc7b0dc5450474a840359a79443 (patch)
tree8fa0ad96312db3273a03baa22a50994ea9d45512 /src/test/rustdoc-js-std/parser-quote.js
parentbbcf1762ddd06a895b0bb235fa0718901dc73184 (diff)
downloadrust-51de26cfd977edc7b0dc5450474a840359a79443.tar.gz
rust-51de26cfd977edc7b0dc5450474a840359a79443.zip
* If type filter is in quotes, throw an error.
* If there are generics, don't allow to have quotes.
Diffstat (limited to 'src/test/rustdoc-js-std/parser-quote.js')
-rw-r--r--src/test/rustdoc-js-std/parser-quote.js49
1 files changed, 1 insertions, 48 deletions
diff --git a/src/test/rustdoc-js-std/parser-quote.js b/src/test/rustdoc-js-std/parser-quote.js
index aa1b8d3dc64..1c59a3d50ee 100644
--- a/src/test/rustdoc-js-std/parser-quote.js
+++ b/src/test/rustdoc-js-std/parser-quote.js
@@ -1,4 +1,4 @@
-const QUERY = ['-> "p"', '"const": "p"', '("p")', '"p"<p>'];
+const QUERY = ['-> "p"', '("p")'];
 
 const PARSED = [
     {
@@ -20,27 +20,6 @@ const PARSED = [
         userQuery: "-> \"p\"",
         error: null,
     },
-    // This one checks that if quotes are used on the type filter, they're
-    // simply ignored.
-    {
-        args: [],
-        elemName: null,
-        elems: [{
-            name: "p",
-            fullPath: ["p"],
-            pathWithoutLast: [],
-            pathLast: "p",
-            generics: [],
-        }],
-        foundElems: 1,
-        id: "\"const\": \"p\"",
-        nameSplit: null,
-        original: "\"const\": \"p\"",
-        returned: [],
-        typeFilter: 17,
-        userQuery: "\"const\": \"p\"",
-        error: null,
-    },
     {
         args: [{
             name: "p",
@@ -60,30 +39,4 @@ const PARSED = [
         userQuery: "(\"p\")",
         error: null,
     },
-    // This test checks that a literal item can still have generics.
-    {
-        args: [],
-        elemName: null,
-        elems: [{
-            name: "p",
-            fullPath: ["p"],
-            pathWithoutLast: [],
-            pathLast: "p",
-            generics: [{
-                name: "p",
-                fullPath: ["p"],
-                pathWithoutLast: [],
-                pathLast: "p",
-                generics: [],
-            }],
-        }],
-        foundElems: 1,
-        id: "\"p\"<p>",
-        nameSplit: null,
-        original: "\"p\"<p>",
-        returned: [],
-        typeFilter: -1,
-        userQuery: "\"p\"<p>",
-        error: null,
-    },
 ];