diff options
| author | bors <bors@rust-lang.org> | 2023-06-10 10:02:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-06-10 10:02:18 +0000 |
| commit | 4b71d79c972a605959b0a7c82b323fbd8562f070 (patch) | |
| tree | 1b4cb2c2cb64500f4efa7f45dfe39cfe38ccc537 /tests/rustdoc-js-std/parser-weird-queries.js | |
| parent | d0ee1908ed791d3e91d2ad74ba502eaa203cff6d (diff) | |
| parent | dcdfff61d299954557c1a6e3fa9ebb83fe8af30c (diff) | |
| download | rust-4b71d79c972a605959b0a7c82b323fbd8562f070.tar.gz rust-4b71d79c972a605959b0a7c82b323fbd8562f070.zip | |
Auto merge of #112485 - matthiaskrgr:rollup-ta84xje, r=matthiaskrgr
Rollup of 6 pull requests Successful merges: - #110141 (expand: Change how `#![cfg(FALSE)]` behaves on crate root) - #112369 (More CGU cleanups) - #112467 (Compile rustc_driver by default) - #112468 (Change format of rustdoc-js tests by putting query and correction directly alongside the expected values) - #112473 (Update cargo) - #112481 (Ignore tests that hang in new solver) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'tests/rustdoc-js-std/parser-weird-queries.js')
| -rw-r--r-- | tests/rustdoc-js-std/parser-weird-queries.js | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tests/rustdoc-js-std/parser-weird-queries.js b/tests/rustdoc-js-std/parser-weird-queries.js index dc1049a70bc..0e08eaf73c8 100644 --- a/tests/rustdoc-js-std/parser-weird-queries.js +++ b/tests/rustdoc-js-std/parser-weird-queries.js @@ -1,18 +1,10 @@ // This test is mostly to check that the parser still kinda outputs something // (and doesn't enter an infinite loop!) even though the query is completely // invalid. -const QUERY = [ - 'a b', - 'a b', - 'a,b(c)', - 'aaa,a', - ',,,,', - 'mod :', - 'mod\t:', -]; const PARSED = [ { + query: 'a b', elems: [ { name: "a", @@ -38,6 +30,7 @@ const PARSED = [ error: null, }, { + query: 'a b', elems: [ { name: "a", @@ -63,6 +56,7 @@ const PARSED = [ error: null, }, { + query: 'a,b(c)', elems: [], foundElems: 0, original: "a,b(c)", @@ -71,6 +65,7 @@ const PARSED = [ error: "Unexpected `(`", }, { + query: 'aaa,a', elems: [ { name: "aaa", @@ -96,6 +91,7 @@ const PARSED = [ error: null, }, { + query: ',,,,', elems: [], foundElems: 0, original: ",,,,", @@ -104,6 +100,7 @@ const PARSED = [ error: null, }, { + query: 'mod :', elems: [], foundElems: 0, original: 'mod :', @@ -112,6 +109,7 @@ const PARSED = [ error: "Unexpected `:` (expected path after type filter)", }, { + query: 'mod\t:', elems: [], foundElems: 0, original: 'mod\t:', |
