Skip to content

Rust beta (1.87) and nightly (1.88) lint cleanups

Miguel Ojeda linux-patches lkml rust-for-linux stable 1 version Applied

Status from this message: Applied to `rust-fixes` -- thanks everyone!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 19 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5objtool/rust: add one more `noreturn` Rust function for Rust 1.87.0tools/objtool/check.c+1 -013 replies
2/5rust: clean Rust 1.87.0's `clippy::ptr_eq` lintsrust/kernel/alloc/kvec.rs rust/kernel/list.rs+7 -72 replies
3/5rust: clean Rust 1.88.0's `unnecessary_transmutes` lintinit/Kconfig rust/bindings/lib.rs rust/uapi/lib.rs+5 -00 replies
4/5rust: clean Rust 1.88.0's warning about `clippy::disallowed_macros` configuration.clippy.toml+1 -10 replies
5/5rust: clean Rust 1.88.0's `clippy::uninlined_format_args` lintdrivers/gpu/nova-core/gpu.rs rust/kernel/str.rs rust/macros/kunit.rs +3 more+35 -502 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchTamir DubersteinBenno LossinAlice Ryhl
SeriesR-b
1/5
2/5
3/5
4/5
5/5R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/5] Rust beta (1.87) and nightly (1.88) lint cleanups

Now that Rust 1.87.0 is close to release, clean up the new lints that appeared.

It may be that one of the patches is not needed by the time it releases, but I prefer to not wait much longer since I would like to land this for -rc6 so that it is clean for release.

In addition, clean some nightly (1.88.0) ones too.

Miguel Ojeda (5):
objtool/rust: add one more noreturn Rust function for Rust 1.87.0
rust: clean Rust 1.87.0's clippy::ptr_eq lints
rust: clean Rust 1.88.0's unnecessary_transmutes lint
rust: clean Rust 1.88.0's warning about clippy::disallowed_macros
configuration
rust: clean Rust 1.88.0's clippy::uninlined_format_args lint

 .clippy.toml                              |  2 +-
 drivers/gpu/nova-core/gpu.rs              |  2 +-
 init/Kconfig                              |  3 ++
 rust/bindings/lib.rs                      |  1 +
 rust/kernel/alloc/kvec.rs                 |  2 +-
 rust/kernel/list.rs                       | 12 +++---
 rust/kernel/str.rs                        | 46 +++++++++++------------
 rust/macros/kunit.rs                      | 13 ++-----
 rust/macros/module.rs                     | 19 +++-------
 rust/macros/paste.rs                      |  2 +-
 rust/pin-init/internal/src/pinned_drop.rs |  3 +-
 rust/uapi/lib.rs                          |  1 +
 tools/objtool/check.c                     |  1 +
 13 files changed, 49 insertions(+), 58 deletions(-)

base-commit: b4432656b36e5cc1d50a1f2dc15357543add530e --
2.49.0