Re: [PATCH] rust: ptr: replace unneeded use of `build_assert`

From: Gary Guo

Date: Sat Jan 17 2026 - 11:49:00 EST


On Sat Jan 17, 2026 at 2:30 PM GMT, Miguel Ojeda wrote:
> On Sat, Jan 17, 2026 at 4:17 AM Alexandre Courbot <acourbot@xxxxxxxxxx> wrote:
>>rtable taking this through the Rust tree for this
>> cycle?
>
> That file is maintained in the Rust tree, so it should be taken
> through the Rust tree barring other reasons, yeah. I didn't start
> applying yet for -next.
>
> (By the way, we have `static_assert!` for this -- we should probably
> discuss if we want to start using `const { ... }` more instead.)

static_assert! creates an item and thus cannot refer to generic parameters.

Best,
Gary