Clippy vs cargo check

Are these two separate linters or do the commands cargo clippy and cargo check run the same linter? If they are different, is one more comprehensive?

cargo clippy runs Clippy, while cargo check only tries to compile with rustc. cargo clippy should give all errors and warnings of cargo check combined with Clippy specific warnings. Clippy warnings are a little more trigger happy and are more opinionated. The extra lint passes presumably also make it slower to run Clippy.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.