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.
This commit is contained in:
parent
df77afbcaf
commit
db277f5284
7 changed files with 200 additions and 24 deletions
|
@ -359,6 +359,15 @@ const PARSED = [
|
|||
userQuery: "mod:a!",
|
||||
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: [],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue