[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <DFR409RFEJH4.3ABKI91FVIMGS@kernel.org>
Date: Sat, 17 Jan 2026 20:25:51 +0100
From: "Benno Lossin" <lossin@...nel.org>
To: "Gary Guo" <gary@...yguo.net>, "Miguel Ojeda" <ojeda@...nel.org>, "Boqun
Feng" <boqun.feng@...il.com>, Björn Roy Baron
<bjorn3_gh@...tonmail.com>, "Andreas Hindborg" <a.hindborg@...nel.org>,
"Alice Ryhl" <aliceryhl@...gle.com>, "Trevor Gross" <tmgross@...ch.edu>,
"Danilo Krummrich" <dakr@...nel.org>, "Tamir Duberstein"
<tamird@...il.com>, José Expósito
<jose.exposito89@...il.com>
Cc: <rust-for-linux@...r.kernel.org>, "Guilherme Giacomo Simoes"
<trintaeoitogc@...il.com>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3 03/12] rust: macros: convert `#[vtable]` macro to use
`syn`
On Mon Jan 12, 2026 at 6:07 PM CET, Gary Guo wrote:
> From: Gary Guo <gary@...yguo.net>
>
> `#[vtable]` is converted to use syn. This is more robust than the
> previous heuristic-based searching of defined methods and functions.
>
> When doing so, the trait and impl are split into two code paths as the
> types are distinct when parsed by `syn`.
>
> Reviewed-by: Tamir Duberstein <tamird@...il.com>
> Signed-off-by: Gary Guo <gary@...yguo.net>
Reviewed-by: Benno Lossin <lossin@...nel.org>
Cheers,
Benno
> ---
> rust/macros/lib.rs | 9 ++-
> rust/macros/vtable.rs | 169 +++++++++++++++++++++++-------------------
> 2 files changed, 98 insertions(+), 80 deletions(-)
Powered by blists - more mailing lists