Syntax extensions (apparently) can not return multiple items. #16723
Labels
A-syntaxext
Area: Syntax extensions
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Since #10649,
macro_rules!
macros can return multiple items. But there is no easy way to do so from a syntax extension: the result value must implementMacResult
and the appropriate implementation appear to beMacItem
, but it can only hold one item.In servo/servo#3142, I worked around this with a new
MacItems
(plural) type:Perhaps this could be added to libsyntax or merged with
MacItem
.The text was updated successfully, but these errors were encountered: