Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jsha opened this issue Jun 2, 2022 · 1 comment
Closed

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

jsha opened this issue Jun 2, 2022 · 1 comment
Labels
A-rustdoc-search Area: Rustdoc's search feature T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@jsha
Copy link
Contributor

jsha commented Jun 2, 2022

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

@jsha jsha added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. A-rustdoc-search Area: Rustdoc's search feature labels Jun 2, 2022
@notriddle
Copy link
Contributor

Fixed by #103799

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rustdoc-search Area: Rustdoc's search feature T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants