Open
Description
Problem
Currently I still need a clippy.toml
in the latest stable as I cannot pass arguments to clippy lints like disallowed_methods
in the [lints]
table in the Cargo.toml
. There is prior art with the unexpected_cfgs
lint as that sets check-cfg = [..args]
, but I don't see anything similar for clippy lints that also receive arguments.
Proposed Solution
Add an args
or similar entry to the [lints.specific-lint]
table that allows passing arguments to clippy (or have clippy read from the Cargo.toml
for the configured arguments).
Notes
I believe that like rust-lang/cargo#14521 , there is no support for this currently.