Re: [PATCH v2] rust: mem: add `Align` type
From: Miguel Ojeda
Date: Fri Oct 02 2026 - 03:24:31 EST
On Wed, Jun 10, 2026 at 1:51 PM Gary Guo <gary@xxxxxxxxxxx> wrote:
>
> Rust's `repr(align())` only works with integers. Add an `Align` type so it
> can also be specified via const generics.
>
> Signed-off-by: Gary Guo <gary@xxxxxxxxxxx>
Applied to `rust-next` -- thanks!
[ Adjusted the title of the new module to match the one used in patch
"rust: mem: add `transmute` with deferred size check" (landing via
driver-core), which is also closer to the upstream standard library
title. - Miguel ]
Cheers,
Miguel