Skip to content

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

@jsha

Description

@jsha
Contributor

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).

Activity

added
T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
on Jun 2, 2022
notriddle

notriddle commented on Feb 14, 2023

@notriddle
Contributor

Fixed by #103799

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

    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

        Participants

        @jsha@notriddle

        Issue actions

          rustdoc: search links to non-existent tuple field anchors · Issue #97638 · rust-lang/rust