Search docs by function type signature

Rustdoc has, according to the help popup (?), a feature to search by type signature:

Search functions by type signature (e.g., vec -> usize or * -> vec)

However, when I tried it out and typed vec -> usize in the search bar, it found no results. Did I do something wrong, or is this a bug? Does this feature have an RFC or tracking issue where I can learn more about it?

1 Like

This worked in old versions of rustdoc, but it broke in various ways over time, and now I think it is not working at all.

I noticed that there's the A-type-based-search issue label for this, and an open PR to fix the problem.

That PR is unlikely to get merged any time soon ... In my personal opinion, it makes more sense to try and get rid of caching in rustdoc altogether rather than trying to fix the current mess. I opened an issue for it a while ago but never got around to it: https://github.com/rust-lang/rust/issues/76382

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.