rustdoc search: allow queries to end in an empty path segment
fixes https://github.com/rust-lang/rust/issues/129707 this can be used to show all items in a module, or all associated items for a type. currently sufferes slightly due to case insensitivity, so `Option::` will also show items in the `option::` module. it disables the checking of the last path element, otherwise only items with short names will be shown
This commit is contained in:
parent
ce40196577
commit
cd46ff6c05
3 changed files with 21 additions and 13 deletions
|
@ -143,14 +143,6 @@ const PARSED = [
|
|||
returned: [],
|
||||
error: "Unexpected `:: ::`",
|
||||
},
|
||||
{
|
||||
query: "a::b::",
|
||||
elems: [],
|
||||
foundElems: 0,
|
||||
userQuery: "a::b::",
|
||||
returned: [],
|
||||
error: "Paths cannot end with `::`",
|
||||
},
|
||||
{
|
||||
query: ":a",
|
||||
elems: [],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue