uninlined_format_args misses multi-line macros · Issue #9719 · rust-lang/rust-clippy (original) (raw)

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)