-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 is no-op when edition = 2018 #8574
Comments
Side issue - there is no way to drill into what Is it feasible feature request to add logging (in like a 2nd or 3rd verbosity level) for all commands called from cargo master process? |
I believe you are seeing that clippy shares the cache with As for logging, the |
@ehuss I see... Any chance for quick solution to avoid confusion? E.g. extra prompt message after running "cargo clippy"? Like "Compiling modified modules using clippy" (or whatever is happening actually). I appreciate there is complete solution in pipeline, but it seems months away, while the problem (miscommunication) appears to be trivial to fix. For CARGO_LOG, looks useful, is it documented anywhere? |
You will need to follow up with the clippy team (either in one of the linked issues above, or file a new issue on their repo, or ask on Discord). As for |
I'm going to close this as the relevant issues are tracked in the issues linked above. |
Problem
cargo clippy is not running clippy when edition = 2018. It's also not providing any feedback. It works correctly on edition = 2015.
Various component versions are listed below - it's nightly.
Note that it could as well be caused by
clippy
misbehaving on version = 2018, but I have no way to test this, since neithercargo
norclippy
doesn't expose any information on callingclippy
directly with non-default edition. Either way I blamecargo
, either for a bug, or for lack of feedback that I could use to prove that it'sclippy
fault.It worked around January/February, I'm not sure when it stopped (likely a good few months ago, because I've seen empty output but haven't checked if it's working correctly).
Steps
Just set up a new default project using Nightly toolchain, add something like
let foo = 3;
and test usingcargo clippy
andclippy-driver src/main.rs
.The text was updated successfully, but these errors were encountered: