Skip to content

Duplicate intra-doc link errors in std #78096

Closed
@camelid

Description

@camelid

I found this while working on #78093:

error: unresolved link to `use`
  --> library/std/src/keyword_docs.rs:23:74
   |
23 | /// Other places `as` is used include as extra syntax for [`crate`] and [`use`], or to change
   |                                                                          ^^^^^ the module `std` contains no item named `use`
   |
   = note: `-D broken-intra-doc-links` implied by `-D warnings`
   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

error: unresolved link to `use`
  --> library/std/src/keyword_docs.rs:23:74
   |
23 | /// Other places `as` is used include as extra syntax for [`crate`] and [`use`], or to change
   |                                                                          ^^^^^ the module `std` contains no item named `use`
   |
   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

Not sure how to reproduce; it's probably some weird state issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameC-bugCategory: This is a bug.D-verboseDiagnostics: Too much output caused by a single piece of incorrect code.E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleT-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