microsoft / windows-drivers-rs

Platform that enables Windows driver development in Rust. Developed by Surface.
Apache License 2.0
1.49k stars 65 forks source link

Nightly toolchain has clippy failures in wdk_build #163

Closed NateD-MSFT closed 4 months ago

NateD-MSFT commented 4 months ago

nightly-x86_64-pc-windows-msvc (overridden by +toolchain on the command line) rustc 1.80.0-nightly (867900499 2024-05-23)

Running "cargo +nightly clippy --locked --profile release --target x86_64-pc-windows-msvc --all-targets -- -D warnings" in main:

error: lint group `all` has the same priority (0) as a lint
  --> Cargo.toml:42:1
   |
42 | all = "deny"
   | ^^^   ------ has an implicit priority of 0
...
47 | multiple_unsafe_ops_per_block = "forbid"
   | ----------------------------- 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: `-D clippy::lint-groups-priority` implied by `-D clippy::all`
   = help: to override `-D clippy::all` add `#[allow(clippy::lint_groups_priority)]`
help: to have lints override the group set `all` to a lower priority
   |
42 | all = { level = "deny", priority = -1 }
   |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error: lint group `cargo` has the same priority (0) as a lint
  --> Cargo.toml:45:1
   |
45 | cargo = "warn"
   | ^^^^^   ------ has an implicit priority of 0
46 | # Individual Lints
47 | multiple_unsafe_ops_per_block = "forbid"
   | ----------------------------- 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
help: to have lints override the group set `cargo` to a lower priority
   |
45 | cargo = { level = "warn", priority = -1 }
   |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error: lint group `nursery` has the same priority (0) as a lint
  --> Cargo.toml:44:1
   |
44 | nursery = "warn"
   | ^^^^^^^   ------ has an implicit priority of 0
...
47 | multiple_unsafe_ops_per_block = "forbid"
   | ----------------------------- 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
help: to have lints override the group set `nursery` to a lower priority
   |
44 | nursery = { level = "warn", priority = -1 }
   |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error: lint group `pedantic` has the same priority (0) as a lint
  --> Cargo.toml:43:1
   |
43 | pedantic = "warn"
   | ^^^^^^^^   ------ has an implicit priority of 0
...
47 | multiple_unsafe_ops_per_block = "forbid"
   | ----------------------------- 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
help: to have lints override the group set `pedantic` to a lower priority
   |
43 | pedantic = { level = "warn", priority = -1 }
   |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~