Re: [PATCH] rust: macros: Replace match + panic in const context with const expect
From: Alice Ryhl
Date: Thu Apr 09 2026 - 03:14:05 EST
On Wed, Apr 08, 2026 at 10:09:39PM +0200, CastilloDel wrote:
> This patch replaces an instance of match + panic with const expect,
> which is now usable in const contexts after the MSRV was was updated to
> 1.85.0 (it was available since Rust 1.83.0).
>
> Signed-off-by: Daniel del Castillo <delcastillodelarosadaniel@xxxxxxxxx>
> Suggested-by: Gary Guo <gary@xxxxxxxxxxx>
> Link: https://github.com/Rust-for-Linux/linux/issues/1229
Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>