Skip to content

Rustdoc search should use fuzzy searching in Return Type tab #81646

Closed
@HeroicKatora

Description

@HeroicKatora

Methods are only shown in 'In Return Type' results when their return types match the named type exactly. This is confusing as the normal search also works with any prefix and there is no indication that the other, similar looking tabs, would be stricter in their matching criteria. The title of course adds to the confusion as it directly suggests that fragments are considered.

For example:

https://docs.rs/wgpu/0.7.0/wgpu/struct.Device.html?search=CommandEncode#method.create_command_encoder

I expected to see this happen: The Device::create_command_encoder method should show up in the In Return Type search results. Note that when the name is completed to CommandEncoder the result is as expected:

Screen Shot 2021-02-01 at 22 08 40

Instead, this happened: There are two results in names, and no results for parameters or return types.

Screen Shot 2021-02-01 at 22 06 58

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-searchArea: Rustdoc's search featureC-bugCategory: This is a bug.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