Skip to content

uninlined_format_args misses multi-line macros #9719

Closed
@Nemo157

Description

@Nemo157

Summary

When the macro arguments span multiple lines they are missed by the lint.

Lint Name

uninlined_format_args

Reproducer

I tried this code (playground):

pub fn foo() {
    let a = 1;
    format!("{}",
        a
    );
}

I expected to see this happen: an uninlined_format_args warning

Instead, this happened: no warning

Version

clippy: 0.1.66 (2022-10-24 758f196)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingI-false-negativeIssue: The lint should have been triggered on code, but wasn't

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions