mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
rust: bindings: remove more unnecessary Send/Sync impls
Send and Sync are now implemented on the opaque wrappers. Remove them from the bindings module, unless the structs are pure data containers and/or have no C functions defined on them. Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
48627510a7
commit
2ad011d466
1 changed files with 2 additions and 6 deletions
|
@ -25,15 +25,11 @@ include!(concat!(env!("OUT_DIR"), "/bindings.inc.rs"));
|
||||||
|
|
||||||
// SAFETY: these are implemented in C; the bindings need to assert that the
|
// SAFETY: these are implemented in C; the bindings need to assert that the
|
||||||
// BQL is taken, either directly or via `BqlCell` and `BqlRefCell`.
|
// BQL is taken, either directly or via `BqlCell` and `BqlRefCell`.
|
||||||
unsafe impl Send for BusState {}
|
// When bindings for character devices are introduced, this can be
|
||||||
unsafe impl Sync for BusState {}
|
// moved to the Opaque<> wrapper in src/chardev.rs.
|
||||||
|
|
||||||
unsafe impl Send for CharBackend {}
|
unsafe impl Send for CharBackend {}
|
||||||
unsafe impl Sync for CharBackend {}
|
unsafe impl Sync for CharBackend {}
|
||||||
|
|
||||||
unsafe impl Send for ObjectClass {}
|
|
||||||
unsafe impl Sync for ObjectClass {}
|
|
||||||
|
|
||||||
// SAFETY: this is a pure data struct
|
// SAFETY: this is a pure data struct
|
||||||
unsafe impl Send for CoalescedMemoryRange {}
|
unsafe impl Send for CoalescedMemoryRange {}
|
||||||
unsafe impl Sync for CoalescedMemoryRange {}
|
unsafe impl Sync for CoalescedMemoryRange {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue