aboutsummaryrefslogtreecommitdiff
path: root/rust/qemu-api/tests
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-10-18 11:53:19 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2024-11-05 14:18:17 +0100
commitbb42965dd417042d171ecf98cb470c430b592134 (patch)
treec847d5c8247f66c37be5e9a2f3fdabe50e354b85 /rust/qemu-api/tests
parentf3518400882022ddcbe1148abf2165917a7b4640 (diff)
downloadqemu-bb42965dd417042d171ecf98cb470c430b592134.zip
qemu-bb42965dd417042d171ecf98cb470c430b592134.tar.gz
qemu-bb42965dd417042d171ecf98cb470c430b592134.tar.bz2
rust: do not use MaybeUninit::zeroed()
MaybeUninit::zeroed() is handy but is not available as a "const" function until Rust 1.75.0. Remove the default implementation of Zeroable::ZERO, and write by hand the definitions for those types that need it. It may be possible to add automatic implementation of the trait, via a procedural macro and/or a trick similar to offset_of!, but do it the easy way for now. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api/tests')
0 files changed, 0 insertions, 0 deletions