[PATCH 1/4] rust: macros: extend custom `quote!()` macro
Alexandre Courbot
acourbot at nvidia.com
Fri Aug 8 09:15:38 UTC 2025
On Sun Aug 3, 2025 at 11:20 PM JST, Jesung Yang wrote:
> Implement the `ToTokens` trait for `&T` where `T` implements `ToTokens`.
> This allows users to use the `quote!()` macro with references directly,
> avoiding the need to clone values.
>
> Extend the `quote_spanned!()` macro to support additional punctuation
> tokens: `->`, `<`, `>`, and `==`. This symbols are commonly needed when
> dealing with functions, generic bounds, and equality comparisons.
These two paragraphs feel like they should be split into separate
patches, as they are not related to one another AFAICT.
More information about the Nouveau
mailing list