Re: [PATCH v2] rust: kernel: introduce `unsafe_precondition_assert!` macro

From: Ritvik Gupta
Date: Wed Jul 30 2025 - 14:37:34 EST


> This email should be include the Rust-for-Linux list.

Apologies for oversight.
Automated it to prevent in future :)

> These can just be `const { assert!() }`? There's no reason for this to
> be runtime.

Yeah! `static_assert!` makes sense here.
I'll add more relevant example in v3.

Thanks for the feedback :)