error: lint group `cargo` has the same priority (0) as a lint
--> Cargo.toml:16:1
|
16 | cargo = "warn"
| ^^^^^ ------ has an implicit priority of 0
17 | multiple_crate_versions = "allow"
| ----------------------- has the same priority as this lint
|
= note: the order of the lints in the table is ignored by Cargo
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lint_groups_priority
= note: `#[deny(clippy::lint_groups_priority)]` on by default
help: to have lints override the group set `cargo` to a lower priority
|
16 | cargo = { level = "warn", priority = -1 }
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Summary
If you set your lints in the workspace
Cargo.toml
, thelint_groups_priority
lint does not work.Lint Name
lint_groups_priority
Reproducer
I tried this code:
I expected to see this happen:
Instead, this happened: Nothing
Version