Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jon-chuang opened this issue Nov 20, 2024 · 2 comments
Closed

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

jon-chuang opened this issue Nov 20, 2024 · 2 comments
Labels
C-bug Category: Clippy is not doing the correct thing

Comments

@jon-chuang
Copy link

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

@jon-chuang jon-chuang added the C-bug Category: Clippy is not doing the correct thing label Nov 20, 2024
@jon-chuang
Copy link
Author

jon-chuang commented Nov 20, 2024

Weird, went away once I ran cargo build. Still, I think this is a bug.

@Alexendoo
Copy link
Member

Should be fixed in 1.83 by #13468

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Clippy is not doing the correct thing
Projects
None yet
Development

No branches or pull requests

2 participants