Searched hist:"9 d116f42a38cb95a33da837e0b0b50d91e28906b" (Results 1 – 1 of 1) sorted by relevance
/qemu/rust/qemu-api/src/ |
H A D | assertions.rs | 9d116f42a38cb95a33da837e0b0b50d91e28906b Fri Mar 21 11:25:21 UTC 2025 Paolo Bonzini <pbonzini@redhat.com> rust: assertions: add static_assert
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.maydell@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Link: https://lore.kernel.org/r/20250321112523.1774131-2-peter.maydell@linaro.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|