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 search should ensure it shows exact matches #59287

Closed
scottmcm opened this issue Mar 19, 2019 · 1 comment · Fixed by #59622
Closed

rustdoc search should ensure it shows exact matches #59287

scottmcm opened this issue Mar 19, 2019 · 1 comment · Fixed by #59622
Assignees
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@scottmcm
Copy link
Member

I was trying to find https://doc.rust-lang.org/nightly/nightly-rustc/syntax/ptr/struct.P.html in rustdoc, but that doesn't show up anywhere if I just search for P: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/transform/?search=P

It does show up if I search for "P" (https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/transform/?search=%22P%22) so there's a workaround, but I think it'd be nice if when I type an exact name, things with that exact name show up at the top, or something.

@Centril Centril added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Mar 19, 2019
@GuillaumeGomez
Copy link
Member

GuillaumeGomez commented Mar 25, 2019

It's supposed to, so some adjustments need to be done on the "search engine". I'll take a look.

@GuillaumeGomez GuillaumeGomez self-assigned this Mar 25, 2019
cramertj added a commit to cramertj/rust that referenced this issue Apr 11, 2019
…rch, r=QuietMisdreavus

Ensure that exact matches come first in rustdoc search

Fixes rust-lang#59287.

cc @scottmcm

r? @QuietMisdreavus
bors added a commit that referenced this issue Apr 12, 2019
…tMisdreavus

Ensure that exact matches come first in rustdoc search

Fixes #59287.

cc @scottmcm

r? @QuietMisdreavus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants