Skip to content

cargo clippy fails with Unrecognized option: 'allow-dirty' #13713

@jon-chuang

Description

@jon-chuang

Summary

cargo clippy --fix --allow-dirty --allow-staged -- -D warnings
warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
error: process didn't exit successfully: `/Users/Jon-Chuang/.rustup/toolchains/stable-aarch64-apple-darwin/bin/clippy-driver /Users/Jon-Chuang/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc -vV` (exit status: 1)
--- stderr
error: Unrecognized option: 'allow-dirty'

rustc:

 rustc 1.82.0 (f6e511eec 2024-10-15)

Reproducer

No response

Version

rustc 1.82.0 (f6e511eec 2024-10-15)
binary: rustc
commit-hash: f6e511eec7342f59a25f7c0534f1dbea00d01b14
commit-date: 2024-10-15
host: aarch64-apple-darwin
release: 1.82.0
LLVM version: 19.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