diff options
| author | bors <bors@rust-lang.org> | 2023-07-03 08:16:58 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-07-03 08:16:58 +0000 |
| commit | a8b6ec16676ded3b90ddf44e33fe6dc9b4dfa23e (patch) | |
| tree | fd1a539f81c6e5c12b15b966068fc2f5f86bf82f /tests/rustdoc-js-std/parser-weird-queries.js | |
| parent | 7d63d7021ff5c88d74dc776e9ef1d8e39467b216 (diff) | |
| parent | 6a21b2ddc2d31ae1aef5b8eed87bb56943c2a685 (diff) | |
| download | rust-a8b6ec16676ded3b90ddf44e33fe6dc9b4dfa23e.tar.gz rust-a8b6ec16676ded3b90ddf44e33fe6dc9b4dfa23e.zip | |
Auto merge of #2955 - rust-lang:rustup2023-07-03, r=oli-obk
Automatic sync from rustc
Diffstat (limited to 'tests/rustdoc-js-std/parser-weird-queries.js')
| -rw-r--r-- | tests/rustdoc-js-std/parser-weird-queries.js | 40 |
1 files changed, 10 insertions, 30 deletions
diff --git a/tests/rustdoc-js-std/parser-weird-queries.js b/tests/rustdoc-js-std/parser-weird-queries.js index 0e08eaf73c8..720ef66c165 100644 --- a/tests/rustdoc-js-std/parser-weird-queries.js +++ b/tests/rustdoc-js-std/parser-weird-queries.js @@ -7,23 +7,14 @@ const PARSED = [ query: 'a b', elems: [ { - name: "a", - fullPath: ["a"], - pathWithoutLast: [], - pathLast: "a", - generics: [], - typeFilter: -1, - }, - { - name: "b", - fullPath: ["b"], - pathWithoutLast: [], + name: "a b", + fullPath: ["a", "b"], + pathWithoutLast: ["a"], pathLast: "b", generics: [], - typeFilter: -1, }, ], - foundElems: 2, + foundElems: 1, original: "a b", returned: [], userQuery: "a b", @@ -33,23 +24,14 @@ const PARSED = [ query: 'a b', elems: [ { - name: "a", - fullPath: ["a"], - pathWithoutLast: [], - pathLast: "a", - generics: [], - typeFilter: -1, - }, - { - name: "b", - fullPath: ["b"], - pathWithoutLast: [], + name: "a b", + fullPath: ["a", "b"], + pathWithoutLast: ["a"], pathLast: "b", generics: [], - typeFilter: -1, }, ], - foundElems: 2, + foundElems: 1, original: "a b", returned: [], userQuery: "a b", @@ -73,7 +55,6 @@ const PARSED = [ pathWithoutLast: [], pathLast: "aaa", generics: [], - typeFilter: -1, }, { name: "a", @@ -81,7 +62,6 @@ const PARSED = [ pathWithoutLast: [], pathLast: "a", generics: [], - typeFilter: -1, }, ], foundElems: 2, @@ -106,7 +86,7 @@ const PARSED = [ original: 'mod :', returned: [], userQuery: 'mod :', - error: "Unexpected `:` (expected path after type filter)", + error: "Unexpected `:` (expected path after type filter `mod:`)", }, { query: 'mod\t:', @@ -115,6 +95,6 @@ const PARSED = [ original: 'mod\t:', returned: [], userQuery: 'mod\t:', - error: "Unexpected `:` (expected path after type filter)", + error: "Unexpected `:` (expected path after type filter `mod:`)", }, ]; |
