[PATCH v11 1/5] rust: macros: reduce collections in `quote!` macro
Benno Lossin
lossin at kernel.org
Sun Jun 1 16:24:19 UTC 2025
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 at gmail.com>
> ---
> rust/macros/quote.rs | 104 ++++++++++++++++++++++++---------------------------
> 1 file changed, 49 insertions(+), 55 deletions(-)
More information about the dri-devel
mailing list