Re: [PATCH 01/15] rust: add IsA bounds to QOM implementation traits

2025-02-24 Thread Zhao Liu
On Fri, Feb 21, 2025 at 06:03:28PM +0100, Paolo Bonzini wrote: > Date: Fri, 21 Feb 2025 18:03:28 +0100 > From: Paolo Bonzini > Subject: [PATCH 01/15] rust: add IsA bounds to QOM implementation traits > X-Mailer: git-send-email 2.48.1 > > Check that the right bounds are provi

[PATCH 01/15] rust: add IsA bounds to QOM implementation traits

2025-02-21 Thread Paolo Bonzini
Check that the right bounds are provided to the qom_isa! macro whenever the class is defined to implement a certain class. This removes the need to add IsA<> bounds together with the *Impl trait bounds. Signed-off-by: Paolo Bonzini --- rust/qemu-api/src/qdev.rs | 2 +- rust/qemu-api/src/qom.rs