[GIT PULL] Rust fixes for 7.1

From: Miguel Ojeda

Date: Sat May 09 2026 - 13:05:19 EST


Hi Linus,

Please pull these fixes for Rust.

They have been in linux-next this full week.

No conflicts expected.

I will likely send another fixes PR later in the cycle.

Thanks!

Cheers,
Miguel

The following changes since commit 254f49634ee16a731174d2ae34bc50bd5f45e731:

Linux 7.1-rc1 (2026-04-26 14:19:00 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux.git tags/rust-fixes-7.1

for you to fetch changes up to 2adc8664018c1cc595c7c0c98474a33c7fe32a85:

rust: allow `clippy::collapsible_if` globally (2026-04-30 23:21:31 +0200)

----------------------------------------------------------------
Rust fixes for v7.1

Toolchain and infrastructure:

- Add 'bindgen' target to make UML 32-bit builds work with GCC.

- Disable two Clippy warnings ('collapsible_{if,match}').

'pin-init' crate:

- Fix unsoundness issue that created &'static references.

----------------------------------------------------------------
David Gow (1):
rust: arch: um: Fix building 32-bit UML with GCC

Gary Guo (2):
rust: pin-init: internal: move alignment check to `make_field_check`
rust: pin-init: fix incorrect accessor reference lifetime

Miguel Ojeda (2):
rust: allow `clippy::collapsible_match` globally
rust: allow `clippy::collapsible_if` globally

Makefile | 2 +
drivers/android/binder/range_alloc/array.rs | 1 -
rust/Makefile | 2 +
rust/pin-init/internal/src/init.rs | 184 +++++++++++++---------------
rust/pin-init/src/__internal.rs | 28 +++--
5 files changed, 107 insertions(+), 110 deletions(-)