summary refs log tree commit diff stats
path: root/rust/qemu-api-macros/src/utils.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rust/qemu-api-macros: use syn::Error directlyManos Pitsidianakis2025-07-101-26/+0
| | | | | | | | | | | Our MacroError type wraps syn::Error as a variant, and uses another variant for custom errors. Fortunately syn::Error can be used directly, avoiding extra code on our side, so change the proc macro crate to use it. Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Link: https://lore.kernel.org/r/20250703-rust_macros-v1-1-b99f82febbbf@linaro.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* rust: qemu-api-macros: extend error reporting facility to parse errorsPaolo Bonzini2025-01-101-0/+26
Generalize the CompileError tuple to an enum, that can be either an error message or a parse error from syn. Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>