Skip to content
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

rustdoc "* -> vec" (documented example for search in type signature) yields error #100078

Closed
RalfJung opened this issue Aug 2, 2022 · 3 comments · Fixed by #100079
Closed

rustdoc "* -> vec" (documented example for search in type signature) yields error #100078

RalfJung opened this issue Aug 2, 2022 · 3 comments · Fixed by #100079
Assignees

Comments

@RalfJung
Copy link
Member

RalfJung commented Aug 2, 2022

In its help, rustdoc says I can use "* -> vec" to search by type signature. But when I actually run exactly that search query, rustdoc says

Query parser error: "Unexpected *".

Cc @rust-lang/rustdoc

@RalfJung RalfJung changed the title rsutdoc "* -> vec" (documented example for search in type signature) yields error rustdoc "* -> vec" (documented example for search in type signature) yields error Aug 2, 2022
@camelid
Copy link
Member

camelid commented Aug 2, 2022

Hmm, I think it uses the syntax -> vec instead (though we've discussed switching to * -> vec, which I prefer). I'll open a PR.

cc @GuillaumeGomez

@RalfJung
Copy link
Member Author

RalfJung commented Aug 2, 2022

Yeah -> vec works.

This looks like a fairly recent regression, * -> vec still works in 1.61.

@camelid
Copy link
Member

camelid commented Aug 2, 2022

It could be that the old query parser just ignored the *. A new one was implemented recently that's strict about syntax.

@bors bors closed this as completed in e92b241 Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants