diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2024-10-18 11:53:19 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-11-05 14:18:17 +0100 |
| commit | bb42965dd417042d171ecf98cb470c430b592134 (patch) | |
| tree | c847d5c8247f66c37be5e9a2f3fdabe50e354b85 /rust/qemu-api/tests | |
| parent | f3518400882022ddcbe1148abf2165917a7b4640 (diff) | |
| download | focaccia-qemu-bb42965dd417042d171ecf98cb470c430b592134.tar.gz focaccia-qemu-bb42965dd417042d171ecf98cb470c430b592134.zip | |
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