rust-lang / rust-lang/rust-clippy

Documentation still says that `--fix` selects all targets, even though the behavior was changed

Open
#15,433 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

According to the Rust 1.89 release notes:

cargo fix and cargo clippy --fix now default to the same Cargo target selection as other build commands. Previously it would apply to all targets (like binaries, examples, tests, etc.). The --edition flag still applies to all targets.

However, the Clippy documentation still says that it implies --all-targets:

Clippy can automatically apply some lint suggestions, just like the compiler. Note that --fix implies --all-targets, so it can fix as much code as it can.

One of these must be wrong.

Additional Labels

@rustbot label +C-bug +A-documentation

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 Clippy usage page linked in the issue and compare its --fix statement with the Rust 1.89 release notes and linked Cargo change. Update the documentation so it accurately describes target selection, then verify the rendered wording and related references.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.