Re: [PATCH] rust: auxiliary: validate DeviceId name length
From: Miguel Ojeda
Date: Wed Sep 09 2026 - 08:54:32 EST
On Wed, Sep 9, 2026 at 1:29 PM Alexandre Courbot <acourbot@xxxxxxxxxx> wrote:
>
> Note that this is not a runtime panic, this method is only ever called
> in const context by the `auxiliary_device_table!` macro, so a panic here
> translates to a build error.
Yeah, this is one instance where `#[const_eval_only]` (or
`#[consteval]` or ...) will make it clearer.
Cheers,
Miguel