Skip to content

rustdoc: Use the concrete type of self in the search-index #92205

Closed
@camelid

Description

@camelid

See the discussion starting at #90630 (comment).

EDIT (@GuillaumeGomez): For example:

pub struct Foo;

impl Foo {
    pub fn something(&self) -> PathBuf { ... }
}

For the example above, if you use Foo -> PathBuf in the search, something won't show up because &self isn't "recognized"/"generated" in the search index as Foo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-searchArea: Rustdoc's search featureA-type-based-searchArea: Searching rustdoc pages using type signaturesC-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