]> git.ipfire.org Git - thirdparty/qemu.git/commit
rust: do not use --no-size_t-is-usize
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Oct 2024 12:31:54 +0000 (14:31 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Nov 2024 13:18:15 +0000 (14:18 +0100)
commit00ed18de3537c783add0be5ea1e0a84979f6f63b
treed16429cdb9a4aa8c1608821c900a4a2e00bd0209
parentb00bf4edeec97a21bf682c8bde7d6a4557058f5c
rust: do not use --no-size_t-is-usize

This is not necessary and makes it harder to write code that is
portable between 32- and 64-bit systems: it adds extra casts even
though size_of, align_of or offset_of already return the right type.

Reviewed-by: Junjie Mao <junjie.mao@hotmail.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
meson.build
rust/qemu-api/src/definitions.rs