Skip to content

rustdoc: search links to non-existent tuple field anchors #97638

Closed
@jsha

Description

@jsha

Steps to reproduce:

  1. Search for 0: https://doc.rust-lang.org/nightly/std/index.html?search=0
  2. Click on first result (std::borrow::Cow::Borrowed::0

Expected result:

Either (a) Borrowed::0 isn't listed in the search index since it's not a named type, or (b) the hyperlink goes to #variant.Borrowed (which exists) instead of #variant.Borrowed.field.0 (which doesn't exist).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-searchArea: Rustdoc's search featureT-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