nonstandard_macro_braces
replacing braces in the macro argument
#9498
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
nonstandard_macro_braces
also replace braces/brackets/parenthesis that are in the macro arguments. This issue is there from initial implementation #7299, which even included a test withformat!
displaying the issue.Lint Name
nonstandard_macro_braces
Reproducer
I tried this code:
I saw this happen:
Notice the parenthesis after
foo
, which break string interpolation.I expected to see this happen:
Macro argument should be unchanged
Version
Additional Labels
@rustbot label +I-suggestion-cause-error
The text was updated successfully, but these errors were encountered: