Skip to content

No trailing comma changes in debug_assert calls #4141

@alercah

Description

@alercah

rustfmt does not change trailing commas in debug_assert invocations, and both of the following are left unchanged:

debug_assert(a == b,);
debug_assert(a == b);

While obviously macros should be handled with care, rustfmt should be able to handle at least common function-like ones as if they were functions, I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macrosArea: macros (procedural macros, macro_rules! macros, etc.)I-poor-formattingIssue: poor formattingP-lowLow priority

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions