#clippy #lint

nightly clippy_utils

Helpful tools for writing lints, provided as they are used in Clippy

11 releases

Uses new Rust 2024

0.1.94 Dec 11, 2025
0.1.93 Oct 31, 2025
0.1.92 Sep 18, 2025
0.1.90 Jun 26, 2025
0.1.73 Jan 11, 2024

#43 in Procedural macros

Download history 396/week @ 2025-09-23 462/week @ 2025-09-30 319/week @ 2025-10-07 442/week @ 2025-10-14 428/week @ 2025-10-21 501/week @ 2025-10-28 718/week @ 2025-11-04 549/week @ 2025-11-11 835/week @ 2025-11-18 1082/week @ 2025-11-25 1351/week @ 2025-12-02 1495/week @ 2025-12-09 1493/week @ 2025-12-16 1237/week @ 2025-12-23 1114/week @ 2025-12-30 1152/week @ 2026-01-06

5,256 downloads per month

MIT/Apache

675KB
14K SLoC

clippy-utils

Helpful tools for writing lints, provided as they are used in Clippy.

Usage

This crate is only guaranteed to build with this nightly toolchain:

nightly-2025-12-11

To use clippy-utils in your lint, add the following to your Cargo.toml:

clippy_utils = "0.1.XY"

XY is the version of the nightly toolchain above and can be determined with rustc +nightly-YYYY-MM-DD -V.

⚠️ Stability ⚠️

No stability guarantees are made for this crate! Use at your own risk.

Function signatures can change or be removed without replacement without any prior notice.

LICENSE

Copyright 2014-2025 The Rust Project Developers

Licensed under the Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0> or the MIT license <https://opensource.org/licenses/MIT>, at your option. Files in the project may not be copied, modified, or distributed except according to those terms.

Dependencies

~1.1–1.8MB
~38K SLoC