rust-lang / rust-lang/rust-clippy
Documentation still says that `--fix` selects all targets, even though the behavior was changed
Nobody has claimed this yet.
- 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
--fiximplies--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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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