Re: [PATCH v5 02/15] rust: macros: add `quote!` macro

From: Alice Ryhl
Date: Mon Apr 03 2023 - 13:57:05 EST


On 4/3/23 17:44, Benno Lossin wrote:
From: Gary Guo <gary@xxxxxxxxxxx>

Add the `quote!` macro for creating `TokenStream`s directly via the
given Rust tokens. It also supports repetitions using iterators.

It will be used by the pin-init API proc-macros to generate code.

Signed-off-by: Gary Guo <gary@xxxxxxxxxxx>
Signed-off-by: Benno Lossin <y86-dev@xxxxxxxxxxxxxx>
Reviewed-by: Andreas Hindborg <a.hindborg@xxxxxxxxxxx>
Cc: Alice Ryhl <aliceryhl@xxxxxxxxxx>

Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>