Re: [PATCH v1 1/3] rust: make `allocator::aligned_size` a `const fn`

From: Miguel Ojeda
Date: Sun Aug 17 2025 - 12:51:17 EST


On Sun, Jul 20, 2025 at 11:49 AM Onur Özkan <work@xxxxxxxxxxxxx> wrote:
>
> Makes `allocator::aligned_size` a `const fn` to allow
> compile-time evaluation.
>
> Signed-off-by: Onur Özkan <work@xxxxxxxxxxxxx>

For future reference: we wouldn't be able to enable it as-is without
the unstable feature anyway (which Danilo noticed when applied his
version of this) -- if it is needed in the future, the patch is at:

https://lore.kernel.org/all/CANiq72mUXy6AYkwCW_kO3ikjNBc5pLzXw0+fXFGmYum0tGmw1g@xxxxxxxxxxxxxx/

Cheers,
Miguel