diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-06-14 06:25:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-14 06:25:49 +0200 |
| commit | e3021b4a42c20bafa16b1ff0cff56aa5dc4d584e (patch) | |
| tree | dbf1b2f2280bf876d7e3dd159b6a13f275de930d /tests/rustdoc-js-std/parser-errors.js | |
| parent | 269ea4bd6bd8075f60b0ad3d8d51d87dfa18643f (diff) | |
| parent | db277f528407864e24d3d7934d9c23e28d950165 (diff) | |
| download | rust-e3021b4a42c20bafa16b1ff0cff56aa5dc4d584e.tar.gz rust-e3021b4a42c20bafa16b1ff0cff56aa5dc4d584e.zip | |
Rollup merge of #112571 - notriddle:notriddle/never-search, r=GuillaumeGomez
rustdoc-search: search never type with `!` This feature extends rustdoc to support the syntax that most users will naturally attempt to use to search for diverging functions. Part of #60485 It's already possible to do this search with `primitive:never`, but that's not what the Rust language itself uses, so nobody will try it if they aren't told or helped along.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
| -rw-r--r-- | tests/rustdoc-js-std/parser-errors.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/rustdoc-js-std/parser-errors.js b/tests/rustdoc-js-std/parser-errors.js index aa8ee86d672..af7f63f99cb 100644 --- a/tests/rustdoc-js-std/parser-errors.js +++ b/tests/rustdoc-js-std/parser-errors.js @@ -360,6 +360,15 @@ const PARSED = [ error: 'Invalid search type: macro `!` and `mod` both specified', }, { + query: "mod:!", + elems: [], + foundElems: 0, + original: "mod:!", + returned: [], + userQuery: "mod:!", + error: 'Invalid search type: primitive never type `!` and `mod` both specified', + }, + { query: "a!::a", elems: [], foundElems: 0, |
