Alexandre Courbot
2025-Aug-08 09:15 UTC
[PATCH 1/4] rust: macros: extend custom `quote!()` macro
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.