Re: [PATCH] rust: transmute: use split_at_checked() and split_at_mut_checked()

From: Miguel Ojeda

Date: Tue Mar 10 2026 - 06:05:07 EST


On Tue, Mar 10, 2026 at 10:57 AM Albab Hasan <albabhasan276@xxxxxxxxx> wrote:
>
> These methods were stabilized in Rust 1.80.0, which is the current
> minimum supported Rust version for the kernel.

No, it is not 1.80.0, but 1.78.0 -- please check
`Documentation/process/changes.rst`.

We can still use them, since they were added in 1.77 from a quick
look, though, but the feature would need to be enabled.

We will soon bump the minimum this cycle (but it will not be 1.80 but
1.85), so we could alternatively just put the patch on top instead of
enabling the feature.

Thanks!

Cheers,
Miguel