Skip to content

Support use of non-repeating tokens in repeating blocks #7

Closed
@sfackler

Description

@sfackler

From https://github.com/dtolnay/quote/releases/tag/0.3.0:

Cannot mix repeating and non-repeating tokens at the same level. If #a is repeating (like a Vec) and #b is not, then quote! { #(#a #b)* } will not work. Ideally it would insert the same #b for each #a the way macro_rules! does but I have not figured this out yet. For now you can explicitly repeat b using std::iter::repeat.

Filing as an issue so I'll know when it's fixed :)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions