Re: [PATCH 0/7] rust: pin-init: upstream synchronization for 7.3 (round 1)

From: Gary Guo

Date: Mon Jul 13 2026 - 07:51:03 EST


On Fri Jul 10, 2026 at 5:20 PM BST, Gary Guo wrote:
> This is a series that synchronize pin-init upstream.
>
> It includes the following merged PR:
> - internal: error on duplicate `#[pin]` attribute
> https://github.com/Rust-for-Linux/pin-init/pull/120
>
> It includes the following PR that I intend to merge soon:
> - Lint cleanups
> https://github.com/Rust-for-Linux/pin-init/pull/160
> - unwind safety fixes
> https://github.com/Rust-for-Linux/pin-init/pull/140
>
> Signed-off-by: Gary Guo <gary@xxxxxxxxxxx>
> ---
> Gary Guo (4):
> rust: pin-init: examples: fix incorrect drop
> rust: pin-init: remove redundant clippy expects in doc tests
> rust: pin-init: internal: stop using `expect` in macro expansion
> rust: pin-init: internal: generate brace in macro for init code blocks
>
> Luiz Georg (1):
> rust: pin-init: internal: error on duplicate `#[pin]` attribute
>
> Mirko Adzic (2):
> rust: pin-init: make `[pin_]init_array_from_fn` unwind safe
> rust: pin-init: make `[pin_]chain` unwind safe

Applied to pin-init-next.

I reworded "rust: pin-init: internal: stop using `expect` in macro expansion"
based on Sashiko suggestion and picked up Benno's review on lint cleanup PR on
GitHub.

Best,
Gary

>
> rust/pin-init/examples/mutex.rs | 5 +-
> rust/pin-init/internal/src/init.rs | 8 +-
> rust/pin-init/internal/src/pin_data.rs | 10 +--
> rust/pin-init/src/lib.rs | 151 ++++++++++++++++++++-------------
> 4 files changed, 101 insertions(+), 73 deletions(-)
> ---
> base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482
> change-id: 20260710-pin-init-sync-a4cee08c619c
>
> Best regards,
> --
> Gary Guo <gary@xxxxxxxxxxx>