rust-lang / rust-lang/rust

rustdoc doesn't detect + warn about broken anchor links, unlike regular intra-doc links

Open
#137,740 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug T-rustdoc
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Not sure what category this should be. This one is much more of a feature request, than a bug.

The term of what is meant by anchors is borrowed from here https://github.com/rust-lang/rust/issues/62833 .

cargo-deadlinks https://github.com/deadlinks/cargo-deadlinks does detect these, but is somewhat unofficial and is not as convenient to use as the rustdoc / cargo doc .

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading rustdoc and cargo doc behavior alongside issue #62833 and the detection provided by cargo-deadlinks. Identify how rustdoc validates regular intra-doc links, then define equivalent handling for broken anchor links; done means cargo doc or rustdoc warns about those broken anchors.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.