-
Notifications
You must be signed in to change notification settings - Fork 1.7k
clippy --fix broken since nightly 2020-12-21 #6487
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
Comments
Uhm |
I also noticed that when running with I'm wondering if that is related. |
Adding arguments like I wonder why I didn't see that earlier given that I use master clippy here and there.. :/ edit: seems this is actually desired..?
edit2: perhaps we can exclude the deps from this (since we usually don't print warnings about these anyway?) |
Oh this was for sure unintended. Can you try this on a clean build? (so a complete build without the flag then adding the flag) Since I'm not going to have time to properly fix this soon (I'm on holidays), I will probably revert the change and try again in the future) |
It looks like clippy automatically makes a clean build when --cap-lints is added. (it always rechecks everything when I add or remove the flag) |
@ebroto Should we revert your changes and resync Clippy, so that this doesn't land in the beta, which is released on 2020-12-31? |
@flip1995 yep that would be better as I'm not sure when I will be able to work on it, thanks!
Thinking a bit more about it, this is exactly how RUSTFLAGS are supposed to work, flags are passed also to deps. I will try to find a different solution for the original problem (flag changes are ignored). RUSTFLAGS does not seem to be the best approach, but AFAIK there's nothing else available, so this might require asking for a feature in cargo. |
ci: test cargo clippy --fix -Zunstable-options Make sure we catch cases like #6487 in CI in the future. --- *Please write a short comment explaining your change (or "none" for internal only changes)* changelog: none
|
Clippy was synced in the rustc repo a couple hours ago, it looks like this breaks
cargo clippy --fix
RUSTC_WRAPPER="" ~/.cargo/bin/cargo +nightly clippy --fix -Zunstable-options
(
RUSTC_WRAPPER
is to disable sccache) works fine (this isrustc 1.50.0-nightly (1f5bc176b 2020-12-19)
)RUSTC_WRAPPER="" ~/.cargo/bin/cargo +master clippy --fix -Zunstable-options
does not seem to workcc @ebroto
You did some changes how
--no-deps
is passed in cc96955 ?The text was updated successfully, but these errors were encountered: