[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 10/12] rust: qemu-api-macros: extend error reporting facility
From: |
Zhao Liu |
Subject: |
Re: [PATCH 10/12] rust: qemu-api-macros: extend error reporting facility to parse errors |
Date: |
Thu, 26 Dec 2024 12:50:41 +0800 |
On Fri, Dec 20, 2024 at 03:29:52PM +0100, Paolo Bonzini wrote:
> Date: Fri, 20 Dec 2024 15:29:52 +0100
> From: Paolo Bonzini <pbonzini@redhat.com>
> Subject: [PATCH 10/12] rust: qemu-api-macros: extend error reporting
> facility to parse errors
> X-Mailer: git-send-email 2.47.1
>
> Generalize the CompileError tuple to an enum, that can be either an error
> message or a parse error from syn.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> rust/qemu-api-macros/src/lib.rs | 27 ++++++++++-----------------
> rust/qemu-api-macros/src/utils.rs | 26 ++++++++++++++++++++++++++
> 2 files changed, 36 insertions(+), 17 deletions(-)
> create mode 100644 rust/qemu-api-macros/src/utils.rs
>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
- [PATCH 03/12] rust: macros: check that the first field of a #[derive(Object)] struct is a ParentField, (continued)
- [PATCH 03/12] rust: macros: check that the first field of a #[derive(Object)] struct is a ParentField, Paolo Bonzini, 2024/12/20
- [PATCH 11/12] rust: qemu-api-macros: add automatic TryFrom/TryInto derivation, Paolo Bonzini, 2024/12/20
- [PATCH 07/12] rust: pl011: only leave embedded object initialization in instance_init, Paolo Bonzini, 2024/12/20
- [PATCH 09/12] rust: qdev: expose inherited methods to subclasses of SysBusDevice, Paolo Bonzini, 2024/12/20
- [PATCH 05/12] rust: qom: automatically use Drop trait to implement instance_finalize, Paolo Bonzini, 2024/12/20
- [PATCH 10/12] rust: qemu-api-macros: extend error reporting facility to parse errors, Paolo Bonzini, 2024/12/20
- Re: [PATCH 10/12] rust: qemu-api-macros: extend error reporting facility to parse errors,
Zhao Liu <=
- [PATCH 06/12] rust: qom: move device_id to PL011 class side, Paolo Bonzini, 2024/12/20
- [PATCH 08/12] rust: qom: make INSTANCE_POST_INIT take a shared reference, Paolo Bonzini, 2024/12/20
- [PATCH 12/12] rust: hide warnings for subprojects, Paolo Bonzini, 2024/12/20
- Re: [PATCH 00/12] Next round of qemu_api patches, Zhao Liu, 2024/12/23