Re: [PATCH 1/3] rust: pin-init: internal: allow `clippy::large_unopt_stack_frames`
From: Miguel Ojeda
Date: Fri Nov 20 2026 - 10:09:32 EST
On Wed, Nov 18, 2026 at 3:31 PM Gary Guo <gary@xxxxxxxxxx> wrote:
>
> From: Gary Guo <gary@xxxxxxxxxxx>
>
> Since Rust 1.102, Clippy renames `large_stack_frames` to
> `large_unopt_stack_frames` and make it warn by default. This is a good
> thing as in such cases pin-init should be used rather than potentially
> leave unoptimized large moves on stack. However, this also triggers in
> unexecutable code paths that pin-init generates for field duplication and
> exhaustiveness checks. Allow it on the generated check closure.
>
> Signed-off-by: Gary Guo <gary@xxxxxxxxxxx>
We hit this in stable kernels, so:
Cc: stable@xxxxxxxxxxxxxxx # 6.12.x (Rust is pinned in older LTSs)
Cheers,
Miguel