diff options
| author | bors <bors@rust-lang.org> | 2024-03-14 12:17:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-03-14 12:17:08 +0000 |
| commit | c2fbe404d21572a04dabc6a0e23eb3ab367832ad (patch) | |
| tree | 346b38122d033b77ce11574e0f9d6d312fb6d69d /tests/rustdoc-js-std/parser-errors.js | |
| parent | e69f14b14cfa6e2ae863adb07e9add736d1f45fc (diff) | |
| parent | 75dc99b9963a3553e515f9c5da50eb19fbcdaba4 (diff) | |
| download | rust-c2fbe404d21572a04dabc6a0e23eb3ab367832ad.tar.gz rust-c2fbe404d21572a04dabc6a0e23eb3ab367832ad.zip | |
Auto merge of #122483 - matthiaskrgr:rollup-n07dsh5, r=matthiaskrgr
Rollup of 9 pull requests Successful merges: - #104353 (Add CStr::bytes iterator) - #119676 (rustdoc-search: search types by higher-order functions) - #120699 (Document `TRACK_DIAGNOSTIC` calls.) - #121899 (Document how removing a type's field can be bad and what to do instead) - #122405 (Add methods to create StableMIR constant) - #122416 (Various style improvements to `rustc_lint::levels`) - #122421 (Improve `Step` docs) - #122440 (const-eval: organize and extend tests for required-consts) - #122461 (fix unsoundness in Step::forward_unchecked for signed integers) Failed merges: - #122397 (Various cleanups around the const eval query providers) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
| -rw-r--r-- | tests/rustdoc-js-std/parser-errors.js | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/tests/rustdoc-js-std/parser-errors.js b/tests/rustdoc-js-std/parser-errors.js index 16d171260da..ffd169812b6 100644 --- a/tests/rustdoc-js-std/parser-errors.js +++ b/tests/rustdoc-js-std/parser-errors.js @@ -114,7 +114,7 @@ const PARSED = [ original: "(p -> p", returned: [], userQuery: "(p -> p", - error: "Unexpected `-` after `(`", + error: "Unclosed `(`", }, { query: "::a::b", @@ -195,7 +195,7 @@ const PARSED = [ original: "a (b:", returned: [], userQuery: "a (b:", - error: "Expected `,`, `:` or `->`, found `(`", + error: "Unclosed `(`", }, { query: "_:", @@ -330,7 +330,7 @@ const PARSED = [ original: 'a<->', returned: [], userQuery: 'a<->', - error: 'Unexpected `-` after `<`', + error: 'Unclosed `<`', }, { query: "a<a>:", @@ -357,7 +357,16 @@ const PARSED = [ original: "a,:", returned: [], userQuery: "a,:", - error: 'Unexpected `,` in type filter (before `:`)', + error: 'Expected type filter before `:`', + }, + { + query: "a!:", + elems: [], + foundElems: 0, + original: "a!:", + returned: [], + userQuery: "a!:", + error: 'Unexpected `!` in type filter (before `:`)', }, { query: " a<> :", @@ -366,7 +375,7 @@ const PARSED = [ original: "a<> :", returned: [], userQuery: "a<> :", - error: 'Unexpected `<` in type filter (before `:`)', + error: 'Expected `,`, `:` or `->` after `>`, found `:`', }, { query: "mod : :", |
