-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
invocation fails to properly parse arguments: error: Unrecognized option: 'all-packages'
#9079
Comments
Same here cargo clippy
error: failed to run `rustc` to learn about target-specific information
Caused by:
process didn't exit successfully: `/Users/vic/.rustup/toolchains/stable-x86_64-apple-darwin/bin/clippy-driver rustc - --crate-name ___ --print=file-names --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg` (exit status: 1)
--- stderr
error: Unrecognized option: 'all-features'
|
Running into this myself. Running clippy using Huge blocker :( No idea how to even debug this. (Note that in the screenshot the repo is dirty; problem persists even on a EDIT: for anyone finding this through search, my issue was that one directory had a toolchain file pinning a newer version of nightly, whereas the "faulty" directory was all-of-a-sudden picking up the system version, which was old enough not to have the related argument in Using a toolchain file or updating my system installation fixes it. Hope that helps. |
I get the same issue after running: cargo clippy -- --all-targets --all-features --tests -D warnings -W clippy::pedantic -W clippy::nursery -W rust-2018-idioms Instead of: cargo clippy --all-targets --all-features --tests -- -D warnings -W clippy::pedantic -W clippy::nursery -W rust-2018-idioms After this, any clippy invocation came with this error. Deleting the |
Tracking in #12623 as it has a reproducer |
Summary
After updating to Rust 1.62 stable (Clippy 0.1.62),
cargo clippy
fails to execute under multiple scenarios:The project was originally compiled with Rust 1.61 stable toolchain, and all targets had previously been built with 1.61. After the
rustup update
, I initially ran a simplecargo clippy
which recompiled and ran clippy successfully.However, attempting to use
cargo clippy --all-packages
the first time resulted inerror: Unrecognized option: 'all-packages'
. All subsequent clippy commands resulted in the sameerror: Unrecognized option: 'all-packages'
, though the errant option was never passed to these invocations. Acargo clean
fixed the issue, and I haven't been able to reproduce again.@jyn514 was able to reproduce this issue on x86_64 as well:
Thanks! Let me know if there's any additional information I can provide, or tests I can run.
Reproducer
No response
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: