Re: [PATCH 01/11] rust: pin-init: internal: remove proc-macro[2] and quote workarounds

Benno Lossin
2026-01-05T08:53:28Z

On Sun Jan 4, 2026 at 2:35 PM CET, Tamir Duberstein wrote:
> On Thu, Dec 11, 2025 at 2:28 PM Gary Guo <gary@kernel.org> wrote:
>>
>> From: Benno Lossin <lossin@kernel.org>
>>
>> The kernel only had the `proc-macro` library available, whereas the
>> user-space version also used `proc-macro2` and `quote`. Now both are
>> available to the kernel, making it possible to remove the workarounds.
>>
>> Signed-off-by: Benno Lossin <lossin@kernel.org>
>> Co-developed-by: Gary Guo <gary@garyguo.net>
>> Signed-off-by: Gary Guo <gary@garyguo.net>
>
> This adds a dependency edge from pin-init-internal to syn, but syn is
> not actually used in pin-init or pin-init-internal.
>
> There's a comment in rust/pin-init/src/macros.rs that suggests syn
> might be used in the future, but as of this comment this is a dead
> dependency edge.

I have a patchset prepared in [1] and plan to send that this cycle.

[1]: https://github.com/Rust-for-Linux/pin-init/pull/89

Cheers,
Benno