Skip to content

-D warnings is ignored when running with --fix #16550

@wlohrmann-hf

Description

@wlohrmann-hf

Summary

If there are any warnings in my code and I run cargo clippy -- -D warnings I get an exit code of 101. If I run cargo clippy --fix -- -D warnings on the same code I get an exit status of 0.

Note: I'm using the ESP toolchain from espressif.

Reproducer

Code:
Any code that produces a warning

Current output:
Exit status 0

Desired output:
Exit status 101

Version

rustc 1.90.0-nightly (abf50ae2e 2025-09-16) (1.90.0.0)
binary: rustc
commit-hash: abf50ae2e46066e67e29fe856f9764c23aa9a3ca
commit-date: 2025-09-16
host: aarch64-apple-darwin
release: 1.90.0-nightly
LLVM version: 20.1.1

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