Skip to content

rustdoc: "Type -> *" search does not work. #75622

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RalfJung opened this issue Aug 17, 2020 · 7 comments
Closed

rustdoc: "Type -> *" search does not work. #75622

RalfJung opened this issue Aug 17, 2020 · 7 comments
Labels
A-type-based-search Area: Searching rustdoc pages using type signatures C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@RalfJung
Copy link
Member

The rustdoc help says:

Search functions by type signature (e.g., vec -> usize or * -> vec)

Based on this example, I expected the natural generalization vec -> * to also work and show all functions that take a vec as input, but that query shows no result at all. I am not sure if there is any way to show "all functions that take T as input", which is surprising given that the same is possible for the return type.

@RalfJung
Copy link
Member Author

Cc @rust-lang/rustdoc

@jyn514 jyn514 added C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Aug 17, 2020
@bjorn3
Copy link
Member

bjorn3 commented Aug 17, 2020

image

@RalfJung
Copy link
Member Author

Ah, I somehow never even noticed these tabs. Thanks!

Seems strange though that of the two tabs on the right, one has a short-hand via the search box ("in return types"), but the other does not.

@jyn514 jyn514 added the A-type-based-search Area: Searching rustdoc pages using type signatures label Aug 17, 2020
@GuillaumeGomez
Copy link
Member

Once #90630 is merged, I'll take a look to this one.

@Emilgardis
Copy link
Contributor

Emilgardis commented May 8, 2023

any progress on this? * -> vec doesn't work anymore either and is not suggested by rustdoc in the help text

edit: found #100079, the new syntax for "returns vec" is -> vec

@GuillaumeGomez
Copy link
Member

* isn't supported in the search syntax currently so neither * -> vec or vec -> * is working.

@lolbinarycat
Copy link
Contributor

triage: this has been fixed, and has several test cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-based-search Area: Searching rustdoc pages using type signatures C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

7 participants