rust-lang / rust-lang/rust-clippy

Lintcheck gives a wrong link

Open
#15,468 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-infra
Dominant language
Rust
Stars
13.5k
Forks
2.2k
Avg merge
2d 10h
Merged PRs (30d)
32

Description

Description

In the run https://github.com/rust-lang/rust-clippy/actions/runs/16915891054#user-content-unnecessary-semicolon, one of the links is:

https://docs.rs/bat/0.24.0/src/bat/bin/bat/main.rs.html#287

But that link is invalid, because apparently docs.rs doesn't include the src/bin folder where the bat binary is defined. Though if I go to the "bat-0.24.0 > Links > Source" in the top menu, I'm able to see all the files of the crate, in particular the main.rs at:

https://docs.rs/crate/bat/0.24.0/source/src/bin/bat/main.rs#287
Version

Additional Labels

No response

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 with the linked lintcheck run and trace the entry point that generated the docs.rs URL for bat 0.24.0. Compare it with the crate source URL shown in the issue; done when lintcheck produces a valid link for src/bin/bat/main.rs#287.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.