OS Manuals

/usr/bin/clippy-driver

Empowering everyone to build reliable and efficient software.

From rust-1.96 1.96.1-r4 (os), captured 2026-11-05 by running clippy-driver --help (exit 0). permalink

Checks a file to catch common mistakes and improve your Rust code.
Run clippy-driver with the same arguments you use for rustc

Usage:
    clippy-driver [OPTIONS] INPUT

Common options:
    -h, --help               Print this message
    -V, --version            Print version info and exit
    --rustc                  Pass all arguments to rustc

Allowing / Denying lints
You can use tool lints to allow or deny lints from your code, e.g.:

    #[allow(clippy::needless_lifetimes)]
Options (3)
OptionDescriptionSource
-h, --helpPrint this messagehelp
-V, --versionPrint version info and exithelp
--rustcPass all arguments to rustchelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.