mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-18 21:48:36 -07:00
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>
|
||
|---|---|---|
| .. | ||
| assertions.rs | ||
| bindings.rs | ||
| bitops.rs | ||
| c_str.rs | ||
| callbacks.rs | ||
| cell.rs | ||
| chardev.rs | ||
| errno.rs | ||
| irq.rs | ||
| lib.rs | ||
| memory.rs | ||
| module.rs | ||
| offset_of.rs | ||
| prelude.rs | ||
| qdev.rs | ||
| qom.rs | ||
| sysbus.rs | ||
| timer.rs | ||
| vmstate.rs | ||
| zeroable.rs | ||