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

Tamir Duberstein
2026-01-04T13:36:22Z

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.

Cheers.
Tamir