• by andy_ppp on 6/22/2025, 8:45:29 AM

    FYI “Rust’s Clippy is a collection of lints (static analysis rules) designed to catch common mistakes and suggest improvements in your Rust code.”

  • by PartiallyTyped on 6/22/2025, 8:58:17 AM

    I’ve contributed quite a few patches into clippy, it’s a great project and a great way to learn how the rustc “sees” code; from the AST, to HIR, to using typeck — sometimes we even construct types at runtime to validate the code against — to tracking traits and their implementations across a whole crate!

    Clippy really is a labour of love project, and it’s been great to work with these folk <3

    I will try to pick up some issues in the coming weeks.

  • by lewdwig on 6/22/2025, 10:27:14 AM

    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?

  • by jedisct1 on 6/22/2025, 11:09:27 AM

    Just to be clear, this has nothing to do with Microsoft Clippy. This post is about a tool for a programming language called Rust.

  • by ishanjain28 on 6/22/2025, 12:20:50 PM

    Unrelated, Is there a clippy lint to detect when you fill up and array/collection and immediately call clear on it ?