Skip to content

Clippy errors after the first problematic crate in the workspace #15075

Open
@pronebird

Description

@pronebird

Summary

When running cargo clippy it prints all warnings for all crates in the workspace.

However when running it with -Dwarnings, it errors after the first crate that contains error without showing all of the errors within the workspace.

cargo clippy --workspace --locked -- -Dwarnings

Instead it should collect all errors, print them, then error.

Reproducer

I tried this code:

<code>

I expected to see this happen:

Instead, this happened:

Version

rustc 1.89.0-nightly (414482f6a 2025-05-13)
binary: rustc
commit-hash: 414482f6a0d4e7290f614300581a0b55442552a3
commit-date: 2025-05-13
host: aarch64-pc-windows-msvc
release: 1.89.0-nightly
LLVM version: 20.1.4

Additional Labels

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-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