aboutsummaryrefslogtreecommitdiff
path: root/rust/qemu-api/src/definitions.rs
diff options
context:
space:
mode:
authorJunjie Mao <junjie.mao@hotmail.com>2024-10-17 22:32:44 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2024-12-10 18:49:24 +0100
commita3057c52f45c280bffc22980f535799a12500d66 (patch)
tree06d7a77a12ec6ef314d77547b6c4e4c398479635 /rust/qemu-api/src/definitions.rs
parent8a88b55f698ad660a11d24925cedcff106053ff4 (diff)
downloadqemu-a3057c52f45c280bffc22980f535799a12500d66.zip
qemu-a3057c52f45c280bffc22980f535799a12500d66.tar.gz
qemu-a3057c52f45c280bffc22980f535799a12500d66.tar.bz2
rust/qemu-api: Fix fragment-specifiers in define_property macro
For the matcher of macro, "expr" is used for expressions, while "ident" is used for variable/function names, and "ty" matches types. In define_property macro, $field is a member name of type $state, so it should be defined as "ident", though offset_of! doesn't complain about this. $type is the type of $field, since it is not used in the macro, so that no type mismatch error is triggered either. Fix fragment-specifiers of $field and $type. Signed-off-by: Junjie Mao <junjie.mao@hotmail.com> Co-developed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20241017143245.1248589-2-zhao1.liu@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api/src/definitions.rs')
0 files changed, 0 insertions, 0 deletions