[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aIpmfRIvGh8oVUUj@fedora>
Date: Thu, 31 Jul 2025 00:07:49 +0530
From: Ritvik Gupta <ritvikfoss@...il.com>
To: Gary Guo <gary@...yguo.net>
Cc: ojeda@...nel.org, alex.gaynor@...il.com, boqun.feng@...il.com,
bjorn3_gh@...tonmail.com, lossin@...nel.org, a.hindborg@...nel.org,
aliceryhl@...gle.com, tmgross@...ch.edu, dakr@...nel.org,
linux-kernel@...r.kernel.org, skhan@...uxfoundation.org
Subject: Re: [PATCH v2] rust: kernel: introduce `unsafe_precondition_assert!`
macro
> 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 :)
Powered by blists - more mailing lists