Hacker News new | ask | show | jobs
by lewdwig 357 days ago
If Clippy struggles to account for current and future changes to the Rust compiler this to me raises an obvious question: why isn’t Clippy part of the Rust compiler?
2 comments

I wouldn't say it struggles to do that. And, it is part of the Rust compiler, somewhat. Every PR to the Rust compiler builds Clippy in CI and tests it (although I'm not sure if all tests are run or only part of them).

Clippy is a large collection of mostly unrelated lints, and more are always added. Understandably, they accumulate craft. I think stopping new lints for some time is a reasonable thing to do to keep a healthy codebase.

Technically it is part of the compiler.

The compiler and clippy use the same “engine” to lint, but they are focused on different use cases, with clippy being more general development, whereas the linter in rustc is focused on language usage.