Skip to content

rustdoc search should ensure it shows exact matches #59287

Closed
@scottmcm

Description

@scottmcm

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.

Metadata

Metadata

Labels

T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions