Skip to content

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

@kpreid

Description

@kpreid

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-documentationArea: Adding or improving documentationC-bugCategory: Clippy is not doing the correct thing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions