Skip to content

rustdoc: Searching for path (including a ::) does not work #63005

Description

@RalfJung

Say I want to find the docs for Vec::new, so I search for that. What I get is this: almost all of these results are entirely irrelevant.

rustdoc search should understand enough about Rust syntax to handle :: appropriately.

Activity

  1. hellow554 commented on Jul 26, 2019

    @hellow554
    Contributor

    IIRC this used to work at some time :/

  2. added
    C-bugCategory: This is a bug.
    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
    on Jul 26, 2019
  3. CryZe commented on Jul 26, 2019

    @CryZe
    Contributor

    Looks like this is a regression in 1.36:
    Here it still works: https://doc.rust-lang.org/1.35.0/std/?search=Vec%3A%3Anew
    Here it doesn't: https://doc.rust-lang.org/1.36.0/std/?search=Vec%3A%3Anew

  4. RalfJung commented on Jul 26, 2019

    @RalfJung
    MemberAuthor

    Well, it works better. It still shows lots of junk even for prior versions.

    I mean, when I search for from_raw_parts it also does not show every method that contains the word "from". So searching Vew::new should not show every method called new.

  5. ayuusweetfish commented on Sep 2, 2019

    @ayuusweetfish
    Contributor

    Hi!

    This regression seems to be introduced in #59622. I have a patch in #64094 and would be grateful if anyone interested helps review it.

  6. added 2 commits that reference this issue on Sep 5, 2019
    ca88a5b
    f7ce3e4
  7. added a commit that references this issue on Sep 6, 2019
    8dab014
  8. added a commit that references this issue on Sep 6, 2019
    ab75a17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-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