diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2023-03-01 23:40:18 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-01 23:40:18 +0530 |
| commit | f03e5345aa5bbee3c35a394238431b1267f7ab93 (patch) | |
| tree | 4ee6ad45cedc9e2e4bf6487e72e891f5d7e8d816 /tests/rustdoc-js-std/parser-errors.js | |
| parent | 5423745db8b434fcde54888b35f518f00cce00e4 (diff) | |
| parent | 96e6fb6c57c951ab705bc773cb1f242005d6ea19 (diff) | |
| download | rust-f03e5345aa5bbee3c35a394238431b1267f7ab93.tar.gz rust-f03e5345aa5bbee3c35a394238431b1267f7ab93.zip | |
Rollup merge of #108143 - notriddle:notriddle/filter-exclamation-macro, r=GuillaumeGomez
rustdoc: search by macro when query ends with `!` Related to #96399 Note: the `never` type alias is tested in [`/tests/rustdoc-js-std/alias-3.js`](https://github.com/notriddle/rust/blob/08ad401633037cc226b3806a3c5f48c2f34703bf/tests/rustdoc-js-std/alias-3.js) ## Before  ## After 
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
| -rw-r--r-- | tests/rustdoc-js-std/parser-errors.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/rustdoc-js-std/parser-errors.js b/tests/rustdoc-js-std/parser-errors.js index dc42031e05f..f82a2472063 100644 --- a/tests/rustdoc-js-std/parser-errors.js +++ b/tests/rustdoc-js-std/parser-errors.js @@ -37,6 +37,8 @@ const QUERY = [ "mod : :", "a!a", "a!!", + "mod:a!", + "a!::a", ]; const PARSED = [ @@ -382,4 +384,22 @@ const PARSED = [ userQuery: "a!!", error: 'Cannot have more than one `!` in an ident', }, + { + elems: [], + foundElems: 0, + original: "mod:a!", + returned: [], + typeFilter: -1, + userQuery: "mod:a!", + error: 'Invalid search type: macro `!` and `mod` both specified', + }, + { + elems: [], + foundElems: 0, + original: "a!::a", + returned: [], + typeFilter: -1, + userQuery: "a!::a", + error: 'Cannot have associated items in macros', + }, ]; |
