Rustdoc search should use fuzzy searching in Return Type tab #81646
Labels
A-rustdoc-search
Area: Rustdoc's search feature
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
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 toCommandEncoder
the result is as expected:Instead, this happened: There are two results in names, and no results for parameters or return types.
The text was updated successfully, but these errors were encountered: