Alice Ryhl
2025-Aug-29 08:38 UTC
[PATCH v2 0/5] rust: add `TryFrom` and `Into` derive macros
On Fri, Aug 15, 2025 at 05:32:10AM +0000, Jesung Yang wrote:> This patch series introduces derive macros for `TryFrom` and `Into` > traits. > > A few enhancements were made to the custom `quote!()` macro to write > the derive macro. These include support for additional punctuation > tokens and a fix for an unused variable warning when quoting simple > forms. Detailed information about these enhancements is provided in the > relevant patches. > > This series builds on the previous work [1], where the `FromPrimitive` > trait was considered too heavy for the current use cases. In response > to the emerging need for functionality similar to `ToPrimitive`, this > series also implements the `Into` derive macro. > > The original discussion can be found on Zulip [2]. > > [1] https://lore.kernel.org/rust-for-linux/cover.1750689857.git.y.j3ms.n at gmail.com/ > [2] https://rust-for-linux.zulipchat.com/#narrow/channel/288089/topic/x/near/524335626Reviewed-by: Alice Ryhl <aliceryhl at google.com>