Skip to content

Support trailing commas in function parameter lists #30

Description

@Kazurin-775

Currently, the following code does not work, leading to infinite recursion during macro expansion:

static_detour! {
    static Test: fn(i32,) -> i32;
}

However, it is legal for lists to have trailing commas in Rust:

type Test = fn(i32,) -> i32;

... and this is even recommended when the lists span across multiple lines. Therefore, this should be a nice-to-have feature.

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