On 20/3/25 14:32, Peter Maydell wrote:
From: Paolo Bonzini <pbonz...@redhat.com>

Add a new assertion that is similar to "const { assert!(...) }" but can be used
outside functions and with older versions of Rust.  A similar macro is found in
Linux, whereas the "static_assertions" crate has a const_assert macro that
produces worse error messages.

Suggested-by: Peter Maydell <peter.mayd...@linaro.org>
Supersedes: <20250320113356.799412-1-pbonz...@redhat.com>

^ extraneous tag

Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
Signed-off-by: Peter Maydell <peter.mayd...@linaro.org>
---
  rust/qemu-api/src/assertions.rs | 22 ++++++++++++++++++++++
  1 file changed, 22 insertions(+)


Reply via email to