Skip to content

Unseparated punctuations should have Spacing::Joint #291

@kazatsuyu

Description

@kazatsuyu

The document of proc_macro::Spacing says:

  • When a Punct is immediately followed by another Punct without a whitespace. E.g. + is Joint in += and ++.

However, quote!(++) generates two sepalated + tokens which have Spacing::Alone and quote!(++).to_string() is "+ +".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions