rust-lang / rust-lang/rust-clippy

Lint messages link to docs for 0.0.212 which does not include all available lints

Open
#3,409 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Currently, when installing Clippy on stable via Rustup, the links to the documentation in the lint output point to the documentation of 0.0.212.
That documentation does not include all the lints which are available in the distributed Clippy version.

So, when a newly added lint is triggered, opening the documentation link will not show the new lint, because it wasn't included in 0.0.212.

I can think of two solutions:

  1. Update the version of the clippy_lints crate before the rustc submodule is updated.
  2. Use the short commit hash in the link, instead of the version.

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 at the Clippy lint output that generates documentation links and inspect how the clippy_lints version or short commit hash is selected. Done means stable Rustup links cover every lint available in the distributed Clippy version; validate with a newly added lint.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Bug
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.