qemu-cr16/rust/qemu-api/tests
Paolo Bonzini 2a8a7bb8aa rust: qdev: const_refs_to_static
Now that const_refs_static can be assumed, convert the members of
the DeviceImpl trait from functions to constants.  This lets the
compiler know that they have a 'static lifetime, and removes the
need for the weird "Box::leak()".

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250908105005.2119297-10-pbonzini@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-09-17 19:00:56 +02:00
..
tests.rs rust: qdev: const_refs_to_static 2025-09-17 19:00:56 +02:00
vmstate_tests.rs rust: vmstate: use const_refs_to_static 2025-09-17 19:00:56 +02:00