[GIT PULL] Rust fixes for 7.3 (2nd)
From: Miguel Ojeda
Date: Sun Sep 13 2026 - 10:59:20 EST
Hi Linus,
Please pull these fixes for Rust.
They have been in linux-next for at least 3 rounds (most for more).
No conflicts expected.
Thanks!
Cheers,
Miguel
The following changes since commit cee9395acd8043be0644b25c34bfa86623f2b935:
Linux 7.3-rc1 (2026-08-30 13:34:40 -0700)
are available in the Git repository at:
ssh://git@xxxxxxxxxxxxxxxxxxx/pub/scm/linux/kernel/git/ojeda/linux.git tags/rust-fixes-7.3-2
for you to fetch changes up to f4c3e38111fd84c2c7ae5785755f4a4d476e1cba:
rust: allow `unknown_lints` in generated bindings for Rust < 1.88 (2026-09-08 23:29:18 +0200)
----------------------------------------------------------------
Rust fixes for v7.3 (2nd)
Toolchain and infrastructure:
- Work around a 'bindgen' 0.73.2 bug that emits an 'allow' attribute
for 'unnecessary_transmutes', which is unknown in older compilers.
- Clean 'clippy::as_underscore' lints in generated code by the new
'bindgen' 0.73.0+ releases.
- Clean new 'clippy::needless_range_loop' lint for the upcoming Rust
1.100.0 (expected 2026-11-12).
'kernel' crate:
- 'num' module: fix soundness issue in 'Bounded' by sealing the
'Integer' trait.
'pin-init' crate:
- Fix unreachable warning for the upcoming Rust 1.100.0 (expected
2026-11-12) due to 'Infallible' becoming an alias of '!'.
Samples:
- Add missing newlines in 'pr_*!'s macro calls.
----------------------------------------------------------------
Gary Guo (1):
rust: pin-init: use irrefutable pattern for `stack_pin_init`
John Hubbard (1):
rust: allow `clippy::as_underscore` in the generated bindings
Mehmet Koseoglu (1):
rust: samples: add missing newlines in rust_print_main
Miguel Ojeda (2):
drm/panic: clean new `clippy::needless_range_loop` lint for Rust 1.100.0
rust: allow `unknown_lints` in generated bindings for Rust < 1.88
Younes Akhouayri (1):
rust: num: seal Integer
drivers/gpu/drm/drm_panic_qr.rs | 4 ++--
rust/bindings/lib.rs | 4 +++-
rust/kernel/num.rs | 9 ++++++++-
rust/pin-init/src/lib.rs | 8 +-------
rust/uapi/lib.rs | 4 +++-
samples/rust/rust_print_main.rs | 8 ++++----
6 files changed, 21 insertions(+), 16 deletions(-)