Skip to content

rustdoc: Struct variant fields don't have the right path in the search index #16017

Description

@tomjakubowski
#![crate_type="lib"]
#![feature(struct_variant)]

pub enum Enum {
    Bar { pub name: String }
}

Running rustdoc on this, and then searching for name yields one result, with the incorrect path foo::Enum::Enum::name. Because the path is wrong, the link is also broken.

Activity

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-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.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