qemu-cr16/rust/qemu-api-macros
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
..
src rust: qdev: const_refs_to_static 2025-09-17 19:00:56 +02:00
Cargo.toml rust: centralize config in workspace root 2025-05-02 23:37:55 +02:00
meson.build rust/qemu-api-macros: add unit tests 2025-07-10 18:33:51 +02:00