Re: [PATCH v11 1/5] rust: macros: reduce collections in `quote!` macro

From: Benno Lossin
Date: Sun Jun 01 2025 - 12:24:49 EST


On Fri May 30, 2025 at 2:27 PM CEST, Tamir Duberstein wrote:
> Remove a handful of unncessary intermediate vectors and token streams;
> mainly the top-level stream can be directly extended with the notable
> exception of groups.

What's the motivation for this? I wouldn't spend much effort on this
file, as it'll go away when we add the `quote` crate.

---
Cheers,
Benno

> Remove an unnecessary `#[allow(dead_code)]` added in commit dbd5058ba60c
> ("rust: make pin-init its own crate").
>
> Signed-off-by: Tamir Duberstein <tamird@xxxxxxxxx>
> ---
> rust/macros/quote.rs | 104 ++++++++++++++++++++++++---------------------------
> 1 file changed, 49 insertions(+), 55 deletions(-)