Re: [PATCH] rust: replace `build_assert!` with `const_assert!`

From: Tamir Duberstein

Date: Tue Mar 31 2026 - 12:01:50 EST


> Several Rust assertions currently use the `build_assert!` macro
> despite their conditions only depending on type parameters or const
> generics, not runtime values.
>
> Replace these with the more appropriate `const_assert!` macro which
> should trigger earlier in the compilation pipeline. This is possible
> since commit 560a7a9b9 ("rust: add `const_assert!` macro").
>
> No functional change intended.
>
> Signed-off-by: Mohamad Alsadhan <mo@xxxxxxx>

Acked-by: Tamir Duberstein <tamird@xxxxxxxxxx>

--
Tamir Duberstein <tamird@xxxxxxxxxx>